From: Thomas Maguin This patch allows normal use of Plextor drives: - Hide CD-R - SingleSession - SpeedRead - PowerRec - VariRec - GigaRec Can be tested with new qpxtool (testing version available here): http://de.geocities.com/linux_piewie/download/qpxtool-testing.tgz Signed-off-by: Andrew Morton --- block/scsi_ioctl.c | 4 ++++ include/scsi/scsi.h | 3 +++ 2 files changed, 7 insertions(+) diff -puN block/scsi_ioctl.c~scsi-cd-varirec-gigarec-and-powerrec-as-user block/scsi_ioctl.c --- devel/block/scsi_ioctl.c~scsi-cd-varirec-gigarec-and-powerrec-as-user 2006-02-12 16:20:07.000000000 -0800 +++ devel-akpm/block/scsi_ioctl.c 2006-02-12 16:20:39.000000000 -0800 @@ -161,6 +161,10 @@ static int verify_command(struct file *f safe_for_read(GPCMD_SEEK), safe_for_read(GPCMD_STOP_PLAY_SCAN), + safe_for_read(PLEXTOR_MODE), + safe_for_read(PLEXTOR_PREC_SPEEDS), + safe_for_read(PLEXTOR_MODE2), + /* Basic writing commands */ safe_for_write(WRITE_6), safe_for_write(WRITE_10), diff -puN include/scsi/scsi.h~scsi-cd-varirec-gigarec-and-powerrec-as-user include/scsi/scsi.h --- devel/include/scsi/scsi.h~scsi-cd-varirec-gigarec-and-powerrec-as-user 2006-02-12 16:20:07.000000000 -0800 +++ devel-akpm/include/scsi/scsi.h 2006-02-12 16:21:30.000000000 -0800 @@ -114,7 +114,10 @@ extern const char *const scsi_device_typ #define SEARCH_LOW_12 0xb2 #define READ_ELEMENT_STATUS 0xb8 #define SEND_VOLUME_TAG 0xb6 +#define PLEXTOR_MODE 0xe9 #define WRITE_LONG_2 0xea +#define PLEXTOR_PREC_SPEEDS 0xeb +#define PLEXTOR_MODE2 0xed #define READ_16 0x88 #define WRITE_16 0x8a #define VERIFY_16 0x8f _