From ab2aa3063ff3c37f49f3243507993982a314c165 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 21 Oct 1995 14:24:55 +0000 Subject: mt -f /dev/rcd* offline support --- sys/scsi/cd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 3dbe5c741f7..62e499e858a 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #include #include @@ -800,6 +801,9 @@ cdioctl(dev, cmd, addr, flag, p) return scsi_start(cd->sc_link, SSS_START, 0); case CDIOCSTOP: return scsi_start(cd->sc_link, SSS_STOP, 0); + case MTIOCTOP: + if (((struct mtop *)addr)->mt_op != MTOFFL) + return EIO; case CDIOCEJECT: return scsi_start(cd->sc_link, SSS_STOP|SSS_LOEJ, 0); case CDIOCALLOW: -- cgit v1.2.3