Btw, the docs will have to be very careful about emphasizing that whatever the user set the properties to, may be filesystem dependent. An example like this might suffice
# use specific charset for FAT filesystems
#
ENV{ID_FS_TYPE}=="vfat", ENV{UDISKS_MOUNT_OPTIONS}="utf8=0,iocharset=iso8859-15"
and the USB example in your patch is too encompassing (it sets the property on too many devices). It should be something like this
# mount all USB devices RO
#
SUBSYSTEMS="usb", ENV{ID_FS_USAGE}=="filesystem", ENV{UDISKS_MOUNT_OPTIONS}="ro"
instead (and even this may be too wide - for example, the disk controller may be USB but the disk itself is something else. But that's unimportant.)
Btw, the docs will have to be very careful about emphasizing that whatever the user set the properties to, may be filesystem dependent. An example like this might suffice
# use specific charset for FAT filesystems FS_TYPE} =="vfat" , ENV{UDISKS_ MOUNT_OPTIONS} ="utf8= 0,iocharset= iso8859- 15"
#
ENV{ID_
and the USB example in your patch is too encompassing (it sets the property on too many devices). It should be something like this
# mount all USB devices RO FS_USAGE} =="filesystem" , ENV{UDISKS_ MOUNT_OPTIONS} ="ro"
#
SUBSYSTEMS="usb", ENV{ID_
instead (and even this may be too wide - for example, the disk controller may be USB but the disk itself is something else. But that's unimportant.)