Re: growisofs stopped working with 2.6.8
From: Peter Osterlund
Date: Mon Aug 16 2004 - 13:16:15 EST
"Tony A. Lambley" <tal@xxxxxxxxxxx> 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@xxxxxxxxx
http://w1.894.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/