Permit READ_BUFFER_CAPACITY in SG_IO command table
Subsystems (2)
PATCH 1/1 Permit READ_BUFFER_CAPACITY in SG_IO command table
Hi,
While burning CD's on 2.6.9 with cdrdao, I noticed it complaining repeatedly:
ERROR: Read buffer capacity failed.
It tries to read the buffer capacity (MMC command 0x5c) in order to produce a percentage reading of how full the buffer is.
This patch permits the READ_BUFFER_CAPACITY command again. Please apply.
Signed-off-by Daniel Drake <[email protected]>
drivers/block/scsi_ioctl.c +1 -0
@@ -139,6 +139,7 @@ static int verify_command(struct file *fsafe_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),
include/linux/cdrom.h +1 -0
@@ -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
Quoted 11 lines · Daniel Drake
Hi,
While burning CD's on 2.6.9 with cdrdao, I noticed it complaining repeatedly:
ERROR: Read buffer capacity failed.It tries to read the buffer capacity (MMC command
0x5c) in order to produce a percentage reading of how full the buffer is.This patch permits the
READ_BUFFER_CAPACITYcommand again. Please apply.Signed-off-by Daniel Drake <[email protected]>
Looks fine, thanks!
Signature · 1 line
Jens Axboe