home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / usr / share / doc / packages / hal / conf / storage-policy-examples.fdi < prev    next >
Extensible Markup Language  |  2006-11-29  |  1KB  |  42 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <deviceinfo version="0.2">
  4.  
  5.   <!-- Example: Match volumes from an external USB harddisk enclosure by 
  6.                 matching on vendor and model. Use mount points 
  7.  
  8.               my_usbdisk_part_<partition-number>
  9.  
  10.         NB: some drives (ieee1394 based IIRC) even export the
  11.         property storage.serial, the unique serial number of the
  12.         disk which is a better match -->
  13.   <device>
  14.     <match key="block.is_volume" bool="true">
  15.       <match key="volume.fsusage" string="filesystem">
  16.     <match key="@block.storage_device:storage.vendor" string="ST360021">
  17.       <match key="@block.storage_device:storage.model" string="A">
  18.         <merge key="volume.policy.desired_mount_point" type="string">my_usbdisk_partition_</merge>
  19.         <append key="volume.policy.desired_mount_point" type="copy_property">volume.partition.number</append>
  20.       </match>
  21.     </match>
  22.       </match>
  23.     </match>
  24.   </device>
  25.  
  26.   <!-- Example: Match a volume from an USB Storage Based mp3 player
  27.                 by the file system UUID and assign a mount point.
  28.  
  29.                 NB: When reformatting the volume a new UUID will be
  30.                 used and this rule will have to be altered -->
  31.   <device>
  32.     <match key="block.is_volume" bool="true">
  33.       <match key="volume.fsusage" string="filesystem">
  34.     <match key="volume.uuid" string="4150-3F34">
  35.       <merge key="volume.policy.desired_mount_point" type="string">my_mp3_player</merge>
  36.     </match>
  37.       </match>
  38.     </match>
  39.   </device>
  40.  
  41. </deviceinfo>
  42.