hal/hald/linux2/probing probe-volume.c,1.19,1.20
Kay Sievers
kay at freedesktop.org
Wed Nov 2 17:35:58 PST 2005
Update of /cvs/hal/hal/hald/linux2/probing
In directory gabe:/tmp/cvs-serv11949/hald/linux2/probing
Modified Files:
probe-volume.c
Log Message:
2005-11-03 Kay Sievers <kay.sievers at vrfy.org>
* hald/linux2/probing/probe-volume.c: (main): Comment out multisession
query to determine the starting block of an optical media. It fails on
some drives with broken firmware.
Index: probe-volume.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/probing/probe-volume.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- probe-volume.c 2 Nov 2005 15:38:14 -0000 1.19
+++ probe-volume.c 3 Nov 2005 01:35:56 -0000 1.20
@@ -467,6 +467,10 @@
libhal_device_set_property_bool (ctx, udi, "volume.disc.is_appendable", TRUE, &error);
}
+#if 0
+ /* This seems to cause problems on some drives with broken firmware,
+ * comment it out until we really need multisession support */
+
/* check for multisession disks */
if (ioctl (fd, CDROMREADTOCHDR, &toc_hdr) == 0) {
struct cdrom_tocentry toc_entr;
@@ -485,6 +489,7 @@
vol_probe_offset = toc_entr.cdte_addr.lba * block_size;
}
}
+#endif
/* try again, to get last session that way */
if (vol_probe_offset == 0) {
More information about the hal-commit
mailing list