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 >
Wrap
Extensible Markup Language
|
2006-11-29
|
1KB
|
42 lines
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<!-- Example: Match volumes from an external USB harddisk enclosure by
matching on vendor and model. Use mount points
my_usbdisk_part_<partition-number>
NB: some drives (ieee1394 based IIRC) even export the
property storage.serial, the unique serial number of the
disk which is a better match -->
<device>
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="@block.storage_device:storage.vendor" string="ST360021">
<match key="@block.storage_device:storage.model" string="A">
<merge key="volume.policy.desired_mount_point" type="string">my_usbdisk_partition_</merge>
<append key="volume.policy.desired_mount_point" type="copy_property">volume.partition.number</append>
</match>
</match>
</match>
</match>
</device>
<!-- Example: Match a volume from an USB Storage Based mp3 player
by the file system UUID and assign a mount point.
NB: When reformatting the volume a new UUID will be
used and this rule will have to be altered -->
<device>
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="volume.uuid" string="4150-3F34">
<merge key="volume.policy.desired_mount_point" type="string">my_mp3_player</merge>
</match>
</match>
</match>
</device>
</deviceinfo>