<?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">
        <!-- change string below for your encoding -->
        <merge key="storage.policy.mount_option.iocharset" type="string">utf8</merge>
      </match>
    </match>

    <!-- Normal volumes -->
    <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">

        <!-- VFAT -->
        <match key="volume.fstype" string="vfat">
          <!-- change string below for your encoding -->
                  <merge key="volume.policy.mount_option.iocharset=utf8" type="bool">true</merge>
                  <merge key="volume.policy.mount_option.codepage=866" type="bool">true</merge>
          <merge key="volume.policy.mount_option.dmask=000" type="bool">true</merge>
          <merge key="volume.policy.mount_option.fmask=111" type="bool">true</merge>
          <merge key="volume.policy.mount_option.shortname=mixed" type="bool">true</merge>
          <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
        </match>

        <!-- ISO 9660 -->
        <match key="volume.fstype" string="iso9660">
          <!-- change string below for your encoding -->
          <merge key="volume.policy.mount_option.iocharset=utf8" type="bool">true</merge>
          <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
          <merge key="volume.policy.mount_option.ro" type="bool">true</merge>
        </match> 

        <!-- UDF -->
        <match key="volume.fstype" string="udf">
          <!-- change string below for your encoding -->
          <merge key="volume.policy.mount_option.iocharset" type="string">utf8</merge>
          <merge key="volume.policy.mount_option.umask" type="string">000</merge>
          <merge key="volume.policy.mount_option.sync" type="bool">false</merge>    
        </match>

        <!-- NTFS -->
        <match key="volume.fstype" string="ntfs">
          <!-- change string below for your encoding -->
          <merge key="volume.policy.mount_option.iocharset" type="string">utf8</merge>
          <merge key="volume.policy.mount_option.umask" type="string">000</merge>
          <merge key="volume.policy.mount_option.dmask" type="string">000</merge>
          <merge key="volume.policy.mount_option.fmask" type="string">111</merge>
          <merge key="volume.policy.mount_option.sync" type="bool">false</merge>
          <merge key="volume.policy.mount_option.ro" type="bool">true</merge>
        </match>

      </match>
    </match>
  </device>

</deviceinfo>