hal/hald/linux2/probing probe-volume.c,1.30,1.31

Danny Kukawka dkukawka at kemper.freedesktop.org
Mon Jul 10 11:20:16 PDT 2006


Update of /cvs/hal/hal/hald/linux2/probing
In directory kemper:/tmp/cvs-serv6748/hald/linux2/probing

Modified Files:
	probe-volume.c 
Log Message:
2006-07-10  Danny Kukawka  <danny.kukawka at web.de>

        * hald/linux2/probing/probe-volume.c: (main): set volume.block_size
        for blank CD/DVD to 0 to avoid stange values for volume size if
        volume.block_size and volume.num_blocks.



Index: probe-volume.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/probing/probe-volume.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- probe-volume.c	12 May 2006 16:43:44 -0000	1.30
+++ probe-volume.c	10 Jul 2006 18:20:14 -0000	1.31
@@ -402,6 +402,8 @@
 			break;
 		case CDS_NO_INFO:	/* blank or invalid CD */
 			libhal_device_set_property_bool (ctx, udi, "volume.disc.is_blank", TRUE, &error);
+			/* set the volume size to 0 if disc is blank and not as 4 from BLKGETSIZE64 */
+			libhal_device_set_property_int (ctx, udi, "volume.block_size", 0, &error);
 			dbg ("Disc in %s is blank", device_file);
 			should_probe_for_fs = FALSE;
 			break;




More information about the hal-commit mailing list