public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DVD-RAM rewritable again
@ 2004-08-03 21:21 Pat LaVarre
  2004-08-04  4:58 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Pat LaVarre @ 2004-08-03 21:21 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-scsi, Marcelo Tosatti, John McKell

Jens A:

Can I help by offering the trivial patch shown here?  Or can I help in
some other way?

I ask because I see this patch makes my PATAPI DVD-RAM disc as
rewritable as it was in 2.4.26.

Per my understanding of your instructions, I defer, until 2.4.28, the
non-trivial work of making PATAPI and USB DVD-RAM discs behave the same.

Per my understanding of your instructions, I leave USB DVD-RAM discs not
rewritable until 2.4.28, since those discs have not been rewritable at
least since 2.4.26.

Pat LaVarre

diff -urp linux-2.4.27-rc4/drivers/cdrom/cdrom.c linux-2.4.27-rc4-pel/drivers/cdrom/cdrom.c
--- linux-2.4.27-rc4/drivers/cdrom/cdrom.c	2004-08-01 08:50:45.000000000 -0600
+++ linux-2.4.27-rc4-pel/drivers/cdrom/cdrom.c	2004-08-03 15:10:48.048576912 -0600
@@ -536,6 +536,8 @@ static int cdrom_open_write(struct cdrom
 	if (CDROM_CAN(CDC_RAM) &&
 	    !CDROM_CAN(CDC_CD_R|CDC_CD_RW|CDC_DVD|CDC_DVD_R)) 
 		ret = cdrom_ram_open_write(cdi);
+	else if (CDROM_CAN(CDC_DVD_RAM))
+		ret = 0;
 	else
 		ret = 1;



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-20 22:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03 21:21 [PATCH] DVD-RAM rewritable again Pat LaVarre
2004-08-04  4:58 ` Jens Axboe
2004-08-04 11:35   ` Pat LaVarre
2004-08-04 11:38     ` Jens Axboe
2004-08-17 15:19       ` dvd-ram open succeeds despite write-protect Pat LaVarre
2004-08-04 11:57     ` [PATCH] DVD-RAM rewritable again Marcelo Tosatti
2004-08-20 22:40       ` Pat LaVarre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox