lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
--- linux/drivers/block/scsi_ioctl.c.orig 2004-11-18 18:18:49.666216472 +0000
+++ linux/drivers/block/scsi_ioctl.c 2004-11-18 18:22:50.271638888 +0000
@@ -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),
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.039 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site