hal/doc/spec hal-spec.xml.in,1.25,1.26

David Zeuthen david at freedesktop.org
Wed Oct 13 11:50:47 PDT 2004


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

Modified Files:
	hal-spec.xml.in 
Log Message:
2004-10-13  David Zeuthen  <davidz at redhat.com>

	* doc/spec/hal-spec.xml.in: Add docs for is_ascii attribute on the
	match directive.
	
	* fdi/90defaultpolicy/storage-policy.fdi: Don't add volume policy
	if the drive has the no_partitions_hint set to TRUE. Require label
	to be ASCII if using the label as a mount point. Use whitelist of
	msdos partition types if volume stems from a drive with a msdos
	partition table.
	
	* hald/device_info.c (handle_match): Add the is_ascii match check.
	
	* libhal-storage/libhal-storage.c:
	(hal_drive_free): Free newly added fields
	(hal_volume_free): Free newly added fields
	(hal_drive_from_udi): Add should_mount, mount_filesystem, 	
	desired_mount_point properties
	(hal_volume_from_udi): Add should_mount, mount_filesystem, 	
	desired_mount_point properties
	(hal_drive_policy_default_get_mount_root): New function
	(hal_drive_policy_default_use_managed_keyword): New function
	(hal_drive_policy_default_get_managed_keyword_primary): New function
	(hal_drive_policy_default_get_managed_keyword_secondary): New function
	(hal_drive_policy_is_mountable): New function
	(hal_drive_policy_get_desired_mount_point): New function
	(hal_drive_policy_get_mount_options): New function
	(hal_drive_policy_get_mount_fs): New function
	(hal_volume_policy_is_mountable): New function
	(hal_volume_policy_get_desired_mount_point): New function
	(hal_volume_policy_get_mount_options): New function
	(hal_volume_policy_get_mount_fs): New function
	(hal_drive_no_partitions_hint): New function

	* libhal-storage/libhal-storage.h: Add prototypes for new functions



Index: hal-spec.xml.in
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.xml.in,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- hal-spec.xml.in	13 Oct 2004 13:50:07 -0000	1.25
+++ hal-spec.xml.in	13 Oct 2004 18:50:45 -0000	1.26
@@ -3198,7 +3198,11 @@
 	 </para></listitem>
          <listitem><para>
 	     <literal>is_absolute_path</literal> - matches only when a string property represents an absolute path
-	     (the path doesn't have to exist).
+	     (the path doesn't have to exist). Can be used with 'true' or 'false'.
+	 </para></listitem>
+         <listitem><para>
+	     <literal>is_ascii</literal> - matches only when a string property contain only ASCII characters. 
+	     Can be used with 'true' or 'false'.
 	 </para></listitem>
          <listitem><para>
 	     <literal>compare_lt</literal> - can be used on int, uint64, double and string properties to compare




More information about the hal-commit mailing list