summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_bsd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-02 11:52:13 +0000
committerphk <phk@FreeBSD.org>2002-04-02 11:52:13 +0000
commit4d586060a3f9379cb32b3d988bb5468233c03a0a (patch)
tree269b5ee7d63701fd15809dfe55f7d4dad5def37f /sys/geom/geom_bsd.c
parentffbaaedd06b2e3eec39a7a9188b1f69a971ca1f0 (diff)
downloadFreeBSD-src-4d586060a3f9379cb32b3d988bb5468233c03a0a.zip
FreeBSD-src-4d586060a3f9379cb32b3d988bb5468233c03a0a.tar.gz
Retire the bogus ioctl DIOCGPART in toto.
Once again we can notice that badly thought out hacks ferment and infect far more code than initially expected. Sponsored by: DARPA and NAI Labs.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r--sys/geom/geom_bsd.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c
index 6275bdc..f857dab 100644
--- a/sys/geom/geom_bsd.c
+++ b/sys/geom/geom_bsd.c
@@ -287,17 +287,6 @@ g_bsd_start(struct bio *bp)
g_io_deliver(bp);
return (1);
}
-#ifdef _KERNEL
- if (gio->cmd == DIOCGPART) {
- struct partinfo pi;
- pi.disklab = &ms->inram;
- pi.part = &ms->inram.d_partitions[bp->bio_to->index];
- bcopy(&pi, gio->data, sizeof pi);
- bp->bio_error = 0;
- g_io_deliver(bp);
- return (1);
- }
-#endif
return (0);
}
OpenPOWER on IntegriCloud