hal/doc/spec hal-spec.html,1.36,1.36.2.1

David Zeuthen david at freedesktop.org
Mon Nov 22 13:53:52 PST 2004


Update of /cvs/hal/hal/doc/spec
In directory gabe:/tmp/cvs-serv19436/doc/spec

Modified Files:
      Tag: hal-0_4-stable-branch
	hal-spec.html 
Log Message:
2004-11-22  David Zeuthen  <david at fubar.dk>

	* hald/linux/volume_id/volume_id.c (volume_id_probe): Add some
	logging of what size we call volume_id_probe with

	* hald/linux/block_class_device.c (force_unmount): Only attempt to
	'umount -l' if some hal policy piece are performing policy on the
	device

2004-11-22  David Zeuthen  <davidz at redhat.com>

	* libhal-storage/libhal-storage.c (hal_drive_from_udi): Detect Zip
	and Jaz drives
	(hal_drive_policy_compute_display_name): Fix an ugly bug where
	CD-ROM drives were being named "CD-R" instead of "CD-ROM"

	* libhal-storage/libhal-storage.h: Add enums for Zip and Jaz drives

	* hald/linux/platform_bus_device.c (platform_device_in_gdl): New
	function. Actually check the /etc/mtab for whether the floppy is
	mounted

	* hald/linux/common.h: Add prototype for 
	etc_mtab_process_all_block_devices

	* hald/linux/block_class_device.c (block_class_visit): Never add
	child real childs (e.g. /dev/hdd4) if storage.no_partitions_hint is
	set (for IDE Zip Drives)
	(detect_media): Actually set child to what we find in the TDL
	(mtab_handle_storage): Match on device file before attempting to
	match on major/minor
	(mtab_handle_volume): -do-

	* hald/device_info.c (handle_match): Add the contains and 
	contains_ncase matching operators.

	* fdi/90defaultpolicy/storage-policy.fdi: Add some policy pieces for
	IDE Zip, Jaz and USB Zip drives

	* fdi/20freedesktop/usb-zip-drives.fdi: New file to identify USB
	Zip Drives

	* fdi/20freedesktop/ide-drives.fdi: New file to identify strange IDE
	drives such as Zip and Jaz drives; note that rewriting the device
	file from e.g. /dev/hdd to /dev/hdd4  is actually sane enough to
	do given the abstraction that hal exports :-)

2004-11-16  David Zeuthen  <davidz at redhat.com>

	* fdi/90defaultpolicy/storage-policy.fdi: Remove the "ro" option for
	optical drives as it prevents mounting rw DVD-RAM media (RH bug #139600)

	* hald/linux/volume_id/volume_id.h (VOLUME_ID_PARTITIONS_MAX): Increase
	to 256 (RH bug #139227)

	* hald/linux/volume_id/volume_id.c (probe_msdos_part_table): Fix a
	typo ("to many partitions" -> "too many partitions"
	(volume_id_probe): Do not probe for msdos_part_table since that doesn't
	make sense (../block_class_device.c does that instead)



Index: hal-spec.html
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.html,v
retrieving revision 1.36
retrieving revision 1.36.2.1
diff -u -d -r1.36 -r1.36.2.1
--- hal-spec.html	26 Oct 2004 17:35:21 -0000	1.36
+++ hal-spec.html	22 Nov 2004 21:53:44 -0000	1.36.2.1
@@ -2,7 +2,7 @@
 <HTML
 ><HEAD
 ><TITLE
->HAL 0.4.0 Specification</TITLE
+>HAL 0.4.1.snapshot20041116 Specification</TITLE
 ><META
 NAME="GENERATOR"
 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
@@ -24,7 +24,7 @@
 CLASS="title"
 ><A
 NAME="AEN2"
->HAL 0.4.0 Specification</A
+>HAL 0.4.1.snapshot20041116 Specification</A
 ></H1
 ><H3
 CLASS="author"
@@ -51,7 +51,7 @@
 ></DIV
 ><SPAN
 CLASS="releaseinfo"
->Version 0.4.0<BR></SPAN
+>Version 0.4.1.snapshot20041116<BR></SPAN
 ><HR></DIV
 ><DIV
 CLASS="TOC"
@@ -634,7 +634,7 @@
 ></TR
 ><TR
 ><TD
->0.4.0</TD
+>0.4.1.snapshot20041116</TD
 ><TD
 >&nbsp;</TD
 ><TD
@@ -6874,6 +6874,12 @@
 	&#60;merge key="storage.policy.should_mount" type="bool"&#62;true&#60;/merge&#62;
       &#60;/match&#62;
     &#60;/match&#62;
+    &#60;!-- Also add SCSI optical drives --&#62;
+    &#60;match key="storage.bus" string="scsi"&#62;
+      &#60;match key="storage.drive_type" string="cdrom"&#62;
+        &#60;merge key="storage.policy.should_mount" type="bool"&#62;true&#60;/merge&#62;
+      &#60;/match&#62;
+    &#60;/match&#62;
 
     &#60;!-- Handle drives with non-partitioned media  --&#62;
     &#60;match key="storage.no_partitions_hint" bool="true"&#62;
@@ -6881,7 +6887,6 @@
       &#60;match key="storage.drive_type" string="cdrom"&#62;
 	&#60;merge key="storage.policy.mount_filesystem" type="string"&#62;auto&#60;/merge&#62;
 	&#60;merge key="storage.policy.desired_mount_point" type="string"&#62;cdrom&#60;/merge&#62;
-	&#60;merge key="storage.policy.mount_option.ro" type="bool"&#62;true&#60;/merge&#62;
 	&#60;match key="storage.cdrom.cdr" bool="true"&#62;
 	  &#60;merge key="storage.policy.desired_mount_point" type="string"&#62;cdrecorder&#60;/merge&#62;
 	&#60;/match&#62;
@@ -6966,11 +6971,11 @@
 	       volumes smaller than 2GB --&#62;
 	  &#60;match key="volume.size" compare_lt="2147483648"&#62;
 	    &#60;match key="@block.storage_device:storage.hotpluggable" bool="true"&#62;
-	      &#60;merge key="volume.policy.mount_option.async" type="bool"&#62;true&#60;/merge&#62;
+	      &#60;merge key="volume.policy.mount_option.sync" type="bool"&#62;true&#60;/merge&#62;
 	      &#60;merge key="volume.policy.mount_option.noatime" type="bool"&#62;true&#60;/merge&#62;
 	    &#60;/match&#62;
 	    &#60;match key="@block.storage_device:storage.removable" bool="true"&#62;
-	      &#60;merge key="volume.policy.mount_option.async" type="bool"&#62;true&#60;/merge&#62;
+	      &#60;merge key="volume.policy.mount_option.sync" type="bool"&#62;true&#60;/merge&#62;
 	      &#60;merge key="volume.policy.mount_option.noatime" type="bool"&#62;true&#60;/merge&#62;
 	    &#60;/match&#62;
 	  &#60;/match&#62;
@@ -7011,12 +7016,22 @@
 	    &#60;match key="volume.partition.msdos_part_table_type" int="0x0e"&#62;
 	      &#60;merge key="volume.policy.should_mount" type="bool"&#62;true&#60;/merge&#62;
 	    &#60;/match&#62;
-	  &#60;/match&#62;
-
-	  
+	  &#60;/match&#62;	  
 	&#60;/match&#62;
       &#60;/match&#62;
     &#60;/match&#62;
+    
+  &#60;/device&#62;
+
+  &#60;!-- Dont want to mount non-hotpluggable fixed disks since ideraid
+       detection isnt complete as hald wrongly detects e.g. partitions
+       from some IDE RAID controllers --&#62;
+  &#60;device&#62;
+    &#60;match key="storage.hotpluggable" bool="false"&#62;
+      &#60;match key="storage.removable" bool="false"&#62;
+	&#60;merge key="storage.policy.should_mount" type="bool"&#62;false&#60;/merge&#62;
+      &#60;/match&#62;
+    &#60;/match&#62;
   &#60;/device&#62;
 
 &#60;/deviceinfo&#62;




More information about the hal-commit mailing list