mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Trying to set BAD144 handling on a CD is sufficiently "Dont Do That
then" that we don't need to give the ioctl special treatment.
This commit is contained in:
parent
81f7c76af5
commit
f7d9e545c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51468
@ -52,7 +52,6 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/cdio.h>
|
||||
#include <sys/dkbad.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
@ -580,8 +579,6 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd);
|
||||
}
|
||||
|
||||
switch (cmd) {
|
||||
case DIOCSBAD:
|
||||
return EINVAL;
|
||||
case DIOCGDINFO:
|
||||
*(struct disklabel *) addr = cd->dlabel;
|
||||
return 0;
|
||||
|
@ -54,7 +54,6 @@
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/cdio.h>
|
||||
#include <sys/dkbad.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
@ -435,8 +434,6 @@ scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
|
||||
return EIO;
|
||||
|
||||
switch (cmd) {
|
||||
case DIOCSBAD:
|
||||
return EINVAL;
|
||||
case DIOCGDINFO:
|
||||
*(struct disklabel *)addr = cd->dlabel;
|
||||
return 0;
|
||||
|
@ -349,7 +349,6 @@ static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <sys/buf.h>
|
||||
#include <sys/dkbad.h>
|
||||
#include <sys/cdio.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/fcntl.h>
|
||||
@ -1014,8 +1013,6 @@ int matcdioctl(dev_t dev, u_long command, caddr_t addr,
|
||||
return(EIO); /*<16>then drive really isn't ready*/
|
||||
|
||||
switch(command) {
|
||||
case DIOCSBAD:
|
||||
return(EINVAL);
|
||||
|
||||
case DIOCGDINFO:
|
||||
*(struct disklabel *) addr = cd->dlabel;
|
||||
|
@ -52,7 +52,6 @@ static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/cdio.h>
|
||||
#include <sys/dkbad.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
@ -580,8 +579,6 @@ MCD_TRACE("ioctl called 0x%lx\n", cmd);
|
||||
}
|
||||
|
||||
switch (cmd) {
|
||||
case DIOCSBAD:
|
||||
return EINVAL;
|
||||
case DIOCGDINFO:
|
||||
*(struct disklabel *) addr = cd->dlabel;
|
||||
return 0;
|
||||
|
@ -54,7 +54,6 @@
|
||||
#include <sys/conf.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/cdio.h>
|
||||
#include <sys/dkbad.h>
|
||||
#include <sys/disklabel.h>
|
||||
#include <sys/kernel.h>
|
||||
|
||||
@ -435,8 +434,6 @@ scdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
|
||||
return EIO;
|
||||
|
||||
switch (cmd) {
|
||||
case DIOCSBAD:
|
||||
return EINVAL;
|
||||
case DIOCGDINFO:
|
||||
*(struct disklabel *)addr = cd->dlabel;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user