From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Osterlund Subject: Re: growisofs stopped working with 2.6.8 Date: 16 Aug 2004 20:14:02 +0200 Sender: linux-scsi-owner@vger.kernel.org Message-ID: References: <1092674287.3021.19.camel@bony> <1092672062.20838.29.camel@localhost.localdomain> <1092679156.2393.8.camel@bony> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from av1-1-sn4.m-sp.skanova.net ([81.228.10.116]:13495 "EHLO av1-1-sn4.m-sp.skanova.net") by vger.kernel.org with ESMTP id S267837AbUHPSOJ (ORCPT ); Mon, 16 Aug 2004 14:14:09 -0400 In-Reply-To: <1092679156.2393.8.camel@bony> List-Id: linux-scsi@vger.kernel.org To: "Tony A. Lambley" Cc: Alan Cox , LKML , linux-scsi@vger.kernel.org "Tony A. Lambley" writes: > It still fails, but I get a different message with the patch: > > $ growisofs -Z /dev/dvd=file.iso > Executing 'builtin_dd if=file.iso of=/dev/dvd obs=32k seek=0' > :-( unable to PREVENT MEDIA REMOVAL: Operation not permitted > > K3B fails with the same message as above. > > As you say, it does indeed burn fine as root. The patch below is needed for a start, but it's not enough, because growisofs opens the device in read-only mode, so WRITE_10 fails anyway. --- drivers/block/scsi_ioctl.c~cdrw-filter 2004-08-16 17:13:23.000000000 +0200 +++ drivers/block/scsi_ioctl.c 2004-08-16 18:44:15.000000000 +0200 @@ -146,6 +146,13 @@ safe_for_read(GPCMD_READ_TOC_PMA_ATIP), safe_for_read(GPCMD_REPORT_KEY), safe_for_read(GPCMD_SCAN), + safe_for_read(GPCMD_GET_CONFIGURATION), + safe_for_read(GPCMD_READ_FORMAT_CAPACITIES), + safe_for_read(GPCMD_GET_EVENT_STATUS_NOTIFICATION), + safe_for_read(GPCMD_GET_PERFORMANCE), + + safe_for_write(GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL), + safe_for_write(GPCMD_FLUSH_CACHE), /* Basic writing commands */ safe_for_write(WRITE_6), -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340