patch-1.3.82 linux/drivers/block/ide-cd.c
Next file: linux/drivers/block/ide.c
Previous file: linux/drivers/block/floppy.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Apr 1 10:46:32 1996
- Orig file:
v1.3.81/linux/drivers/block/ide-cd.c
- Orig date:
Sat Mar 16 13:52:13 1996
diff -u --recursive --new-file v1.3.81/linux/drivers/block/ide-cd.c linux/drivers/block/ide-cd.c
@@ -2105,6 +2105,14 @@
return 0;
}
+ case CDROMCLOSETRAY:
+ {
+ if (drive->usage > 1)
+ return -EBUSY;
+
+ return cdrom_eject (drive, 1, NULL);
+ }
+
case CDROMPAUSE:
return cdrom_pause (drive, 1, NULL);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this