public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Drake <dsd@gentoo.org>
To: Jens Axboe <axboe@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Permit LOG_SENSE and LOG_SELECT in SG_IO command table
Date: Thu, 18 Nov 2004 18:33:44 +0000	[thread overview]
Message-ID: <419CEB08.4010406@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

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>

[-- Attachment #2: scsi_ioctl-permit-log-sense-select.patch --]
[-- Type: text/plain, Size: 724 bytes --]

--- 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),

             reply	other threads:[~2004-11-18 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-18 18:33 Daniel Drake [this message]
2004-11-18 18:40 ` [PATCH] Permit LOG_SENSE and LOG_SELECT in SG_IO command table Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=419CEB08.4010406@gentoo.org \
    --to=dsd@gentoo.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox