Skip to contentSkip to conversation

Permit LOG_SENSE and LOG_SELECT in SG_IO command table

PATCH In review Daniel Drake 2 participants 2 messages Nov 18, 2004 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Permit LOG_SENSE and LOG_SELECT in SG_IO command table

Hi,

This patch adds LOG_SENSE as a read-ok command. cdrecord-prodvd uses this. I also added LOG_SELECT as write-ok as this seems to fit in as well.

drivers/block/scsi_ioctl.c renamed from drivers/block/scsi_ioctl.c.orig +2 -0
@@ -127,6 +127,7 @@ static int verify_command(struct file *f
 		safe_for_read(INQUIRY),
 		safe_for_read(MODE_SENSE),
 		safe_for_read(MODE_SENSE_10),
+		safe_for_read(LOG_SENSE),
 		safe_for_read(START_STOP),
 		safe_for_read(GPCMD_VERIFY_10),
 		safe_for_read(VERIFY_16),
@@ -169,6 +170,7 @@ static int verify_command(struct file *f
 		safe_for_write(ERASE),
 		safe_for_write(GPCMD_MODE_SELECT_10),
 		safe_for_write(MODE_SELECT),
+		safe_for_write(LOG_SELECT),
 		safe_for_write(GPCMD_BLANK),
 		safe_for_write(GPCMD_CLOSE_TRACK),
 		safe_for_write(GPCMD_FLUSH_CACHE),
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Daniel Drake

Hi,

This patch adds LOG_SENSE as a read-ok command. cdrecord-prodvd uses this. I also added LOG_SELECT as write-ok as this seems to fit in as well.

Quoted 18 lines
drivers/block/scsi_ioctl.c renamed from drivers/block/scsi_ioctl.c.orig +2 -0
@@ -127,6 +127,7 @@ static int verify_command(struct file *f
 		safe_for_read(INQUIRY),
 		safe_for_read(MODE_SENSE),
 		safe_for_read(MODE_SENSE_10),
+		safe_for_read(LOG_SENSE),
 		safe_for_read(START_STOP),
 		safe_for_read(GPCMD_VERIFY_10),
 		safe_for_read(VERIFY_16),
@@ -169,6 +170,7 @@ static int verify_command(struct file *f
 		safe_for_write(ERASE),
 		safe_for_write(GPCMD_MODE_SELECT_10),
 		safe_for_write(MODE_SELECT),
+		safe_for_write(LOG_SELECT),
 		safe_for_write(GPCMD_BLANK),
 		safe_for_write(GPCMD_CLOSE_TRACK),
 		safe_for_write(GPCMD_FLUSH_CACHE),
Signature · 1 line
Jens Axboe