diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-02 11:52:13 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-02 11:52:13 +0000 |
commit | 408ab1b87503f2e32dd12e5a50b48247e45c9bc3 (patch) | |
tree | 269b5ee7d63701fd15809dfe55f7d4dad5def37f /sys/dev/scd | |
parent | 4e6e5105b065c7d9bf927a76681de72f2bff379f (diff) | |
download | src-408ab1b87503f2e32dd12e5a50b48247e45c9bc3.tar.gz src-408ab1b87503f2e32dd12e5a50b48247e45c9bc3.zip |
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.
Notes
Notes:
svn path=/head/; revision=93657
Diffstat (limited to 'sys/dev/scd')
-rw-r--r-- | sys/dev/scd/scd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index fb11abb262d9..b6f2e86233b4 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -436,11 +436,6 @@ scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) 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[0]; - return 0; case CDIOCPLAYTRACKS: return scd_playtracks(unit, (struct ioc_play_track *) addr); case CDIOCPLAYBLOCKS: |