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/dev/vinum | |
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/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumioctl.c | 11 | ||||
-rw-r--r-- | sys/dev/vinum/vinumobj.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c index 94a9790..0e5f696 100644 --- a/sys/dev/vinum/vinumioctl.c +++ b/sys/dev/vinum/vinumioctl.c @@ -388,17 +388,6 @@ vinumioctl(dev_t dev, break; /* - * Care! DIOCGPART returns *pointers* to - * the caller, so we need to store this crap - * as well. And yes, we need it. - */ - case DIOCGPART: /* get partition information */ - get_volume_label(vol->name, vol->plexes, vol->size, &vol->label); - ((struct partinfo *) data)->disklab = &vol->label; - ((struct partinfo *) data)->part = &vol->label.d_partitions[0]; - break; - - /* * We don't have this stuff on hardware, * so just pretend to do it so that * utilities don't get upset. diff --git a/sys/dev/vinum/vinumobj.h b/sys/dev/vinum/vinumobj.h index 457189e..8a7868f 100644 --- a/sys/dev/vinum/vinumobj.h +++ b/sys/dev/vinum/vinumobj.h @@ -305,7 +305,6 @@ struct _volume */ int plex[MAXPLEX]; /* index of plexes */ #ifdef _KERNEL - struct disklabel label; /* for DIOCGPART */ dev_t dev; /* associated device */ #endif }; |