summaryrefslogtreecommitdiffstats
path: root/sys/dev/mcd
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/dev/mcd
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/dev/mcd')
-rw-r--r--sys/dev/mcd/mcd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index 8531475..ad6c2d9 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -578,12 +578,6 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd);
case DIOCGDINFO:
*(struct disklabel *) addr = cd->dlabel;
return 0;
- case DIOCGPART:
- ((struct partinfo *) addr)->disklab = &cd->dlabel;
- ((struct partinfo *) addr)->part =
- &cd->dlabel.d_partitions[mcd_part(dev)];
- return 0;
-
/*
* a bit silly, but someone might want to test something on a
* section of cdrom.
OpenPOWER on IntegriCloud