Commit 77c22ede authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] add READ_BUFFER_CAPACITY as read-ok command

Patch is from Daniel Drake <dsd@gentoo.org>
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarDaniel Drake <dsd@gentoo.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 331d63a2
...@@ -139,6 +139,7 @@ static int verify_command(struct file *file, unsigned char *cmd) ...@@ -139,6 +139,7 @@ static int verify_command(struct file *file, unsigned char *cmd)
safe_for_read(GPCMD_PAUSE_RESUME), safe_for_read(GPCMD_PAUSE_RESUME),
/* CD/DVD data reading */ /* CD/DVD data reading */
safe_for_read(GPCMD_READ_BUFFER_CAPACITY),
safe_for_read(GPCMD_READ_CD), safe_for_read(GPCMD_READ_CD),
safe_for_read(GPCMD_READ_CD_MSF), safe_for_read(GPCMD_READ_CD_MSF),
safe_for_read(GPCMD_READ_DISC_INFO), safe_for_read(GPCMD_READ_DISC_INFO),
......
...@@ -452,6 +452,7 @@ struct cdrom_generic_command ...@@ -452,6 +452,7 @@ struct cdrom_generic_command
#define GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1e #define GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1e
#define GPCMD_READ_10 0x28 #define GPCMD_READ_10 0x28
#define GPCMD_READ_12 0xa8 #define GPCMD_READ_12 0xa8
#define GPCMD_READ_BUFFER_CAPACITY 0x5c
#define GPCMD_READ_CDVD_CAPACITY 0x25 #define GPCMD_READ_CDVD_CAPACITY 0x25
#define GPCMD_READ_CD 0xbe #define GPCMD_READ_CD 0xbe
#define GPCMD_READ_CD_MSF 0xb9 #define GPCMD_READ_CD_MSF 0xb9
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment