hal/hald/linux block_class_device.c,1.51,1.52

David Zeuthen david at freedesktop.org
Thu Aug 12 07:34:39 PDT 2004


Update of /cvs/hal/hal/hald/linux
In directory pdx:/tmp/cvs-serv5701/hald/linux

Modified Files:
	block_class_device.c 
Log Message:
2004-08-12  David Zeuthen  <david at fubar.dk>

	* doc/spec/hal-spec.xml.in: Rewrite block.no_partitions spec.
	Add storage.[serial|firmware_version] which was forgotton.
	
	* hald/linux/block_class_device.c (detect_media): Set to
	value of storage.no_partitions_hint to honor the new spec when
	creating a volume for media with no partition tables.
	
	* tools/fstab-sync.c: Remove DeviceType datatype; document entries
	in Volume datatype.
	(udi_is_volume_or_nonpartition_drive): Renamed from udi_is_volume
	(compute_cdrom_name): New function
	(volume_determine_device_type): Rewrite
	(volume_new): Call udi_is_volume_or_nonpartition_drive. Always use
	"auto" as target filesystem if not known
	(fs_table_has_volume): Remove debug printfs
	(fs_table_add_volume): Use hal properties to determine mount flags
	(add_udi): Don't process volumes spawned from media w/o partitions
	(remove_udi): Don't process volumes spawned from media w/o partitions
	(main): Also handle capability 'storage'



Index: block_class_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/block_class_device.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- block_class_device.c	11 Aug 2004 18:53:50 -0000	1.51
+++ block_class_device.c	12 Aug 2004 14:34:36 -0000	1.52
@@ -822,6 +822,9 @@
 
 		/* copy block.* properties from parent */
 		hal_device_merge_with_rewrite (child, d, "block", "block");
+		/* in particular, set this to the value of storage.no_partitions_hint */
+		hal_device_property_set_bool (child, "block.no_partitions", 
+					      hal_device_property_get_bool (d, "block.no_partitions"));
 
 		/* modify some properties */
 		hal_device_property_set_bool (child, "block.is_volume", TRUE);




More information about the hal-commit mailing list