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/kern/subr_diskslice.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/kern/subr_diskslice.c')
-rw-r--r-- | sys/kern/subr_diskslice.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index 8120e55..85c1862 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -420,14 +420,6 @@ dsioctl(dev, cmd, data, flags, sspp) lp->d_secsize; return (0); - case DIOCGPART: - if (lp == NULL) - return (EINVAL); - ((struct partinfo *)data)->disklab = lp; - ((struct partinfo *)data)->part - = &lp->d_partitions[dkpart(dev)]; - return (0); - case DIOCGSLICEINFO: bcopy(ssp, data, (char *)&ssp->dss_slices[ssp->dss_nslices] - (char *)ssp); |