diff options
author | phk <phk@FreeBSD.org> | 2002-04-02 11:52:13 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-02 11:52:13 +0000 |
commit | 4d586060a3f9379cb32b3d988bb5468233c03a0a (patch) | |
tree | 269b5ee7d63701fd15809dfe55f7d4dad5def37f /sys/i386/isa/matcd/matcd.c | |
parent | ffbaaedd06b2e3eec39a7a9188b1f69a971ca1f0 (diff) | |
download | FreeBSD-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/i386/isa/matcd/matcd.c')
-rw-r--r-- | sys/i386/isa/matcd/matcd.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c index 88ef03e..eda05c3 100644 --- a/sys/i386/isa/matcd/matcd.c +++ b/sys/i386/isa/matcd/matcd.c @@ -1021,12 +1021,6 @@ int matcdioctl(dev_t dev, u_long command, caddr_t addr, *(struct disklabel *) addr = cd->dlabel; return(0); - case DIOCGPART: - ((struct partinfo *) addr)->disklab=&cd->dlabel; - ((struct partinfo *) addr)->part= - &cd->dlabel.d_partitions[matcd_partition(dev)]; - return(0); - case DIOCWDINFO: case DIOCSDINFO: if ((flags & FWRITE) == 0) { |