public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mount -w of dvd+rw etc. in vanilla 2.6
@ 2003-09-04 22:36 Pat LaVarre
  0 siblings, 0 replies; 32+ messages in thread
From: Pat LaVarre @ 2003-09-04 22:36 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-kernel


> mount -w -t udf works with my dvd-ram ...
> mistakenly sees my dvd+rw as read-only ...

Besides that Andy Polyakov patch for mount -w of dvd+rw, the web has
Jens Axboe patches for mount -w of cd-rw, via the udf faq (Not via the
udftools faq):

http://sourceforge.net/projects/linux-udf/
udf-0.9.7.tar.gz
FAQ
http://w1.894.telia.com/~u89404340/patches/packet/

---

>From these two clues, kindly offline people have identified the Four
fragments of kernel source that cooperate to conclude erroneously that
dvd+rw etc. are not writable:

1)

drivers/scsi/sr.c understands only the CDC_DVD_RAM profile of the seven
standard mmc "writable" device "profile"s, because sr.c neglects to look
beyond the "Capabilities" mode page x2a i.e. does not look beyond the
mmc 1 standard of 1997.  Ansi did not publish an op x46 Get
Configuration standard until the mmc 2 of 1999.

2)

include/scsi/scsi.h does not yet #define GET_CONFIGURATION 0x46.

3)

drivers/cdrom/cdrom.c also understands only CDC_DVD_RAM: cdrom.c
erroneously claims all mmc profiles except CDC_DVD_RAM are not
FMODE_WRITE-able.

4)

include/linux/cdrom.h names only CDC_DVD_RAM.

---

Anyone have an idea of how best to patch this?

I've seen a few linux-2.6.0-test4/ and linux-2.4.22/ alternatives mostly
work.  Anyone interested in evaluating some of them?

Pat LaVarre

^ permalink raw reply	[flat|nested] 32+ messages in thread
* [PATCH] mount -w of dvd+rw etc. in vanilla 2.6
@ 2003-08-18 18:56 Pat LaVarre
  0 siblings, 0 replies; 32+ messages in thread
From: Pat LaVarre @ 2003-08-18 18:56 UTC (permalink / raw)
  To: linux-scsi; +Cc: mdharm-scsi, p.lavarre

I see mount -w -t udf works with my dvd-ram in
late Linux 2.4 and early 2.6, but mistakenly
sees my dvd+rw as read-only.

To make my dvd+rw work, I find I can apply
patches much like:
http://fy.chalmers.se/~appro/linux/DVD+RW/
http://fy.chalmers.se/~appro/linux/DVD+RW/linux-2.4.patch

Can I somehow help ... to get a patch like this
finished & merged into the kernel.org kernel?

I'm new to drivers/scsi/sr_vendor.c ... but I
first glanced thru www.t10.org back in 1994.

Looks to me like this patch begins to expand the
awareness of Linux beyond the "mode page" x2A of
dvd-ram/cd-rw into the "profile"s and "feature"s
that distinguish dvd+rw etc. from other dvd/cd,
so that with my dvd+rw I achieve:

scsi_CDs[minor].device->writeable = 1;
scsi_CDs[minor].cdi.mask &= ~CDC_DVD_RAM;

In particular, in the patch I see 3 mmc3_profile
values from among the 7 values that mmc4r02c.pdf
says imply the "feature" "0020h" =
"Random Writable".

Can I help somehow?

Pat LaVarre
http://members.aol.com/plscsi/tools/knoppix/

P.S. Reply-to-all will reach me faster than
reply to p.lavarre@ieee.org or linux-scsi alone.


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

end of thread, other threads:[~2003-10-14 23:37 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3F5E434D.6080801@unixsol.org>
2003-09-10 16:23 ` [linux-usb-devel] [2.6-test] Bug in usb-storage or scsi? Alan Stern
2003-09-10 18:16   ` [usb-storage] " Pat LaVarre
2003-09-10 18:49     ` sg MiB writes scheduling while atomic Pat LaVarre
2003-09-10 19:30       ` Pat LaVarre
2003-09-16  6:35         ` Douglas Gilbert
2003-09-16 11:42           ` Matthew Wilcox
2003-09-16 12:58             ` Christoph Hellwig
2003-10-14 23:36             ` Pat LaVarre
2003-09-10 20:08       ` [PATCH] mount -w of dvd+rw etc. in vanilla 2.6 Pat LaVarre
2003-09-10 22:49         ` Patrick Mansfield
2003-09-22 14:52       ` max GiB written per boot Pat LaVarre
2003-09-10 20:51     ` unsolicited sense in 2.6.0-test5 usb-storage.ko Pat LaVarre
2003-09-10 21:03       ` [usb-storage] " Alan Stern
2003-09-10 21:24         ` Pat LaVarre
2003-09-10 21:52           ` Matthew Dharm
2003-09-10 22:08             ` Pat LaVarre
2003-09-12  0:21               ` Pat LaVarre
2003-09-12  0:29                 ` Pat LaVarre
2003-09-16 11:28             ` Douglas Gilbert
2003-09-11  0:02   ` [linux-usb-devel] [2.6-test] Bug in usb-storage or scsi? Patrick Mansfield
2003-09-11 20:04     ` [usb-storage] " Pat LaVarre
2003-09-11 20:05     ` Alan Stern
2003-09-11 20:19       ` James Bottomley
2003-09-12 21:17         ` Alan Stern
2003-09-11 20:42       ` Pat LaVarre
2003-09-12 19:59         ` Alan Stern
2003-09-12 19:18       ` Pat LaVarre
2003-09-12 18:43     ` Pat LaVarre
2003-09-12 20:56       ` Patrick Mansfield
2003-09-12 21:53         ` Pat LaVarre
2003-09-04 22:36 [PATCH] mount -w of dvd+rw etc. in vanilla 2.6 Pat LaVarre
  -- strict thread matches above, loose matches on Subject: below --
2003-08-18 18:56 Pat LaVarre

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