<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> 

<deviceinfo version="0.2">
  <device>
    <!-- Handle drives with non-partitioned media  -->
    <match key="storage.no_partitions_hint" bool="true">
      <!-- optical drives -->
      <match key="storage.drive_type" string="cdrom">
        <merge key="storage.policy.mount_option.ro" type="bool">true</merge>
        <merge key="storage.policy.mount_option.iocharset=cp1251" type="bool">true</merge>
      </match>
      
      <!-- floppy drives -->
      <match key="storage.drive_type" string="floppy">
        <merge key="storage.policy.mount_option.iocharset=cp1251" type="bool">true</merge>
        <merge key="storage.policy.mount_option.codepage=866" type="bool">true</merge>
        <merge key="storage.policy.mount_option.showexec" type="bool">true</merge>
      </match>

    </match>
    <!-- Normal volumes; use volume label, uuid or drive_type -->
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
        <!-- skip for drives with the no partitions hint (they are handled above) -->
        <match key="@block.storage_device:storage.no_partitions_hint" bool="false">
          <!-- Use KOI8-R charset for vfat -->
          <match key="volume.fstype" string="vfat">
            <merge key="volume.policy.mount_option.iocharset=cp1251" type="bool">true</merge>
            <merge key="volume.policy.mount_option.codepage=866" type="bool">true</merge>
            <merge key="volume.policy.mount_option.showexec" type="bool">true</merge>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>