diff options
Diffstat (limited to 'source/a/ntfs-3g/10-ntfs-3g-policy.fdi')
-rw-r--r-- | source/a/ntfs-3g/10-ntfs-3g-policy.fdi | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/source/a/ntfs-3g/10-ntfs-3g-policy.fdi b/source/a/ntfs-3g/10-ntfs-3g-policy.fdi index baaf8159..8b837d10 100644 --- a/source/a/ntfs-3g/10-ntfs-3g-policy.fdi +++ b/source/a/ntfs-3g/10-ntfs-3g-policy.fdi @@ -1,13 +1,38 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- Theoretically, this file should ship with ntfs-3g --> + <deviceinfo version="0.2"> <device> - <match key="volume.fstype" string="ntfs"> - <match key="@block.storage_device:storage.hotpluggable" bool="true"> - <merge key="volume.fstype" type="string">ntfs-3g</merge> - <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge> - <append key="volume.mount.valid_options" type="strlist">locale=</append> + <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux"> + <match key="volume.fstype" string="ntfs"> + + <!-- "Register" ntfs-3g as a valid alternative handler --> + <append key="volume.fstype.alternative" type="strlist">ntfs-3g</append> + + <!-- "Register" ntfs-3g as the preferred alternative handler --> + <merge key="volume.fstype.alternative.preferred" type="string">ntfs-3g</merge> + + <!-- Set valid mount options --> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">ro</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">sync</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">dirsync</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">noatime</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">nodiratime</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">noexec</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">quiet</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">remount</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">exec</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">locale=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">uid=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">gid=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">umask=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">dmask=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">fmask=</append> + <append key="volume.mount.ntfs-3g.valid_options" type="strlist">utf8</append> + </match> </match> </device> </deviceinfo> + |