linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fwd: 2.4.27rc2, DVD-RW support broke DVD-RAM writes
       [not found]   ` <20040731163334.GH23697@suse.de>
@ 2004-08-01 14:17     ` Pat LaVarre
       [not found]       ` <06E9D950-E3EF-11D8-B976-00039398BB5E@ieee.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Pat LaVarre @ 2004-08-01 14:17 UTC (permalink / raw)
  To: linux-scsi

>> With 2.4.27rc2 (and I assume anything later than pre5 - that's when
>> DVD-RW got added) DVD-RAMs have become read-only. Opening a DVD-RAM 
>> for
>> writing results in "EROFS (Read-only file system)" (reported by
>> 'strace'.
...
>  let Pat fix it. Pat?

I'll work first to duplicate this result, then try to fix it, maybe by 
deleting all set_disk_ro.

I'll look for code that ends up rewriting both DVD-RAM and Iomega REV 
discs.

> Also, any chance we get proper 'DVD-RAM is write-protected' support in
> 2.4.x ? It'd be really nice if write()/open(O_WRONLY) would fail in
> those cases.

I'll try Iomega REV discs with the MMC PWP switch flipped on and off.

 > ...

Please redirect me if need be.

Pat LaVarre
http://linux-pel.blog-city.com/read/754579.htm


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

* Re: [usb-storage] 2.4.27rc2, DVD-RW support broke DVD-RAM writes
       [not found]         ` <70B2077E-E401-11D8-B976-00039398BB5E@ieee.org>
@ 2004-08-01 23:53           ` Matthew Dharm
  2004-08-02  8:07             ` Jens Axboe
  2004-08-16 17:07           ` Pat LaVarre
  1 sibling, 1 reply; 4+ messages in thread
From: Matthew Dharm @ 2004-08-01 23:53 UTC (permalink / raw)
  To: Pat LaVarre
  Cc: Jens Axboe, linux-scsi, usb-storage@lists.one-eyed-alien.net list

[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]

On Sun, Aug 01, 2004 at 03:26:24PM -0600, Pat LaVarre wrote:
> Jens A/ Matt D:
> 
> Linux 2.4.27-rc4 and 2.4.26 do Not recognise USB DVD-RAM disc 
> rewritability, even though 2.4.27 has recognised USB Iomega REV disc 
> rewritability at least since -rc3.
> 
> Q0: Agreed?

I'll take your word for it.

> Q1: Would you consider a promptly written patch to persuade 2.4.27-rc4 
> to recognise USB DVD-RAM rewritability?  Or is 2.4 development already 
> too over?

I've turned over 2.4 maintance to Pete Zaitcev.

> Q2: Where do you want the patch?  In drivers/usb?  In drivers/scsi?

To me, it sounds like drivers/scsi would be better.  Tho I can see good
arguments for either location.

> Q3: What patch do you want? Should we try op x5A after op x1A fails?  
> Or should we try only op x5A?  Or should we try op x5A first?

I would think on a SCSI Level 2 device, we should start with x5A.

Matt

-- 
Matthew Dharm                              Home: mdharm-usb@one-eyed-alien.net 
Maintainer, Linux USB Mass Storage Driver

It was a new hope.
					-- Dust Puppy
User Friendly, 12/25/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [usb-storage] 2.4.27rc2, DVD-RW support broke DVD-RAM writes
  2004-08-01 23:53           ` [usb-storage] " Matthew Dharm
@ 2004-08-02  8:07             ` Jens Axboe
  0 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2004-08-02  8:07 UTC (permalink / raw)
  To: Pat LaVarre, linux-scsi,
	usb-storage@lists.one-eyed-alien.net list

On Sun, Aug 01 2004, Matthew Dharm wrote:
> On Sun, Aug 01, 2004 at 03:26:24PM -0600, Pat LaVarre wrote:
> > Jens A/ Matt D:
> > 
> > Linux 2.4.27-rc4 and 2.4.26 do Not recognise USB DVD-RAM disc 
> > rewritability, even though 2.4.27 has recognised USB Iomega REV disc 
> > rewritability at least since -rc3.
> > 
> > Q0: Agreed?
> 
> I'll take your word for it.
> 
> > Q1: Would you consider a promptly written patch to persuade 2.4.27-rc4 
> > to recognise USB DVD-RAM rewritability?  Or is 2.4 development already 
> > too over?
> 
> I've turned over 2.4 maintance to Pete Zaitcev.

I think this was a general question. If the patch is to go into
2.4.27-rc now, then it has to be to the point and straight forward (aka
obviously correct). Otherwise we back it out, and get it fixed for
2.4.28-rc.

> > Q2: Where do you want the patch?  In drivers/usb?  In drivers/scsi?
> 
> To me, it sounds like drivers/scsi would be better.  Tho I can see good
> arguments for either location.

Agree

> > Q3: What patch do you want? Should we try op x5A after op x1A fails?  
> > Or should we try only op x5A?  Or should we try op x5A first?
> 
> I would think on a SCSI Level 2 device, we should start with x5A.

Agree. But such a change alone means that it cannot go into 2.4.27, it
has to be in 2.4.28-pre.

-- 
Jens Axboe


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

* Re: [usb-storage] 2.4.27rc2, DVD-RW support broke DVD-RAM writes
       [not found]         ` <70B2077E-E401-11D8-B976-00039398BB5E@ieee.org>
  2004-08-01 23:53           ` [usb-storage] " Matthew Dharm
@ 2004-08-16 17:07           ` Pat LaVarre
  1 sibling, 0 replies; 4+ messages in thread
From: Pat LaVarre @ 2004-08-16 17:07 UTC (permalink / raw)
  To: usb-storage; +Cc: linux-scsi

> drivers/scsi/sr.c ... vendor-specific op x1A 
> reaching the drive, by analogy with SPC op x1A "MODE SENSE (6)", in 
> place of the standard MMC op x5A "MODE SENSE (10)" ...

I've now concretely proposed fixing this in drivers/scsi/.

Subject: [PATCH 2.4] rewritable USB DVD-RAM vs. mode sense op choice
http://marc.theaimsgroup.com/?l=linux-scsi&m=109267404822826

Of course I'll return to drivers/usb/storage/ if the drivers/scsi/ folk
say I should.

Pat LaVarre



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

end of thread, other threads:[~2004-08-16 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040730153657.GB2748@logos.cnet>
     [not found] ` <20040731163334.GH23697@suse. de>
     [not found]   ` <20040731163334.GH23697@suse.de>
2004-08-01 14:17     ` fwd: 2.4.27rc2, DVD-RW support broke DVD-RAM writes Pat LaVarre
     [not found]       ` <06E9D950-E3EF-11D8-B976-00039398BB5E@ieee.org>
     [not found]         ` <70B2077E-E401-11D8-B976-00039398BB5E@ieee.org>
2004-08-01 23:53           ` [usb-storage] " Matthew Dharm
2004-08-02  8:07             ` Jens Axboe
2004-08-16 17:07           ` Pat LaVarre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).