From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pat LaVarre Subject: [PATCH] DVD-RAM rewritable again Date: 03 Aug 2004 15:21:37 -0600 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <1091568097.3644.27.camel@patibmrh9> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from email-out1.iomega.com ([147.178.1.82]:54487 "EHLO email.iomega.com") by vger.kernel.org with ESMTP id S266874AbUHCVWP (ORCPT ); Tue, 3 Aug 2004 17:22:15 -0400 List-Id: linux-scsi@vger.kernel.org To: Jens Axboe Cc: linux-scsi@vger.kernel.org, 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;