Re: 2.4.27rc2, DVD-RW support broke DVD-RAM writes

From: Pat LaVarre
Date: Tue Aug 03 2004 - 15:10:56 EST


what you see in 2.4.27-rc3 when you try:
sudo blockdev --getro /dev/hd*

Sorry, never mind, I can now reproduce this effect myself, because Michael Tilelli kindly lent me a PATAPI DVD-RAM drive.

We must have an asymmetry in 2.4 drivers/ide/ide-cd.c vs. drivers/scsi/sr.c. I see 2.4.26 work, but then 2.4.27-rc3 chokes:

$ uname -msr
Linux 2.4.27-rc4 i686
$
$ sudo rrd scan /dev/hdd
/dev/hdd is MATSHITA DVD-RAM A127 not RRD
$
$ sudo dd if=/dev/hdd bs=32K skip=0 count=1 | hexdump -C
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
1+0 records in
1+0 records out
00008000
$ sudo dd of=/dev/hdd bs=32K skip=0 count=1 <xae.bin
dd: opening `/dev/hdd': Read-only file system
$ sudo blockdev --getro /dev/hdd
0
$

Pat LaVarre

-
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/