The following patch allows the Panasonic DVD-RAM
to function in read-write mode. It doesn't work with
ext2fs since the hardware sector size is 2048 bytes, but
it does work with mkisofs blah blah >/dev/sdb and whatever
other filesystems may work with 2048 byte hardware sectors.
I have successfully copied three DVDs with this drive to the
ram media, mounted the copy and played back the movies from the
mounted copies (yes, they were all unencrypted).
I've also used mkisofs and created a 2GB filesystem on the
DVD-RAM which mounted properly and had no problems. I was able
to overwrite the isofs with yet another dvd copy (unencrypted).
The proper patch is probably to change the architecture of the
whole sd/sr/st layer. It seems sorely in need of rewrite.
-- Nathan Laredo
laredo@gnu.org
--- linux-2.2.10-ac8/drivers/scsi/scsi.c Sun Jul 4 13:30:56 1999
+++ linux/drivers/scsi/scsi.c Fri Jul 2 18:35:31 1999
@@ -762,6 +762,17 @@
scsi_result[1] |= 0x80; /* removable */
}
+ /*
+ * It would seem the Panasonic DVD-RAM is backwards too
+ * If DVD-RAM or PD media used, it seems to function
+ * as Direct-Access
+ */
+ if (!strncmp (scsi_result + 8, "MATSHITA", 7) &&
+ !strncmp (scsi_result + 16, "PD-2 LF-D100", 12)) {
+ scsi_result[0] = TYPE_DISK;
+ scsi_result[1] |= 0x80; /* removable */
+ }
+
memcpy (SDpnt->vendor, scsi_result + 8, 8);
memcpy (SDpnt->model, scsi_result + 16, 16);
memcpy (SDpnt->rev, scsi_result + 32, 4);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/