summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2004-11-03 15:47:25 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-03 15:47:25 -0800
commit77c22ede8bb29eac8fb28d6742bbedaf168d24ef (patch)
treeed86a6ccabc33b83a5a3a514ef2809f29883f633
parent331d63a2b8c3fbabe7497e3b4fca8090a5767495 (diff)
[PATCH] add READ_BUFFER_CAPACITY as read-ok command
Patch is from Daniel Drake <dsd@gentoo.org> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/block/scsi_ioctl.c1
-rw-r--r--include/linux/cdrom.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/scsi_ioctl.c b/drivers/block/scsi_ioctl.c
index b66f16726181..58053678e9a8 100644
--- a/drivers/block/scsi_ioctl.c
+++ b/drivers/block/scsi_ioctl.c
@@ -139,6 +139,7 @@ static int verify_command(struct file *file, unsigned char *cmd)
safe_for_read(GPCMD_PAUSE_RESUME),
/* CD/DVD data reading */
+ safe_for_read(GPCMD_READ_BUFFER_CAPACITY),
safe_for_read(GPCMD_READ_CD),
safe_for_read(GPCMD_READ_CD_MSF),
safe_for_read(GPCMD_READ_DISC_INFO),
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h
index 1c1f5efffd64..141a7460763b 100644
--- a/include/linux/cdrom.h
+++ b/include/linux/cdrom.h
@@ -452,6 +452,7 @@ struct cdrom_generic_command
#define GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1e
#define GPCMD_READ_10 0x28
#define GPCMD_READ_12 0xa8
+#define GPCMD_READ_BUFFER_CAPACITY 0x5c
#define GPCMD_READ_CDVD_CAPACITY 0x25
#define GPCMD_READ_CD 0xbe
#define GPCMD_READ_CD_MSF 0xb9