Bug 141544

Summary: mount options can't be changed for subfs-mounted devices (mem stick, CD, ...)
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Volker Kuhlmann <bugz57>
Component: BasesystemAssignee: Danny Kukawka <dkukawka>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Wrapper script for hald-subfs-mount, to be able to change mount options of hotplug devices.
Wrapper script for hald-subfs-mount, to be able to change mount options of hotplug devices

Description Volker Kuhlmann 2006-01-05 07:06:10 UTC
To change mount options for user-removable devices, this ought to work in /usr/share/hal/fdi/policy/20thirdparty:

<match key="block.is_volume" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<merge key="volume.policy.mount_option.iocharset=latin4"
type="bool">true</merge>
<merge key="volume.policy.mount_options.procuid" type="string">false</merge>
<merge key="volume.policy.mount_options.iocharset" type="string">latin2</merge>

But no such luck. It's a waste of time having to hunt around the system, to find that all these options are hard-coded into hald-subfs-mount. This is indescribable in polite words.

The attached wrapper script will take care of the problem to some extent.
Comment 1 Volker Kuhlmann 2006-01-05 07:07:42 UTC
Created attachment 62024 [details]
Wrapper script for hald-subfs-mount, to be able to change mount options of hotplug devices.
Comment 2 Forgotten User ZhJd0F0L3x 2006-01-05 08:15:16 UTC
reassigning to hal package maintainer
Comment 3 Danny Al-Gaaf 2006-01-11 12:59:52 UTC
We would not change this currently for the next release, because there is a storage manager under development to change this and enable the user to set own settings for mount from desktop. This helper was developed to mount defaultly and not with user changes. We allowed some keys directly, but this was only a workaround.

Btw. there is not volume.policy.mount_options.* with type string. This is a little bug in the spec. Type of this property is bool.
Comment 4 Volker Kuhlmann 2006-01-24 02:18:55 UTC
Created attachment 64641 [details]
Wrapper script for hald-subfs-mount, to be able to change mount options of hotplug devices
Comment 5 Danny Al-Gaaf 2006-01-24 11:21:59 UTC
Btw. subfs is droped from the kernel fo 10.1 and with this also the existing mount helper.
Comment 6 Volker Kuhlmann 2006-01-24 20:03:15 UTC
Thanks Danny, I'm looking forward to anything better than the 10.0 situation. I updated the script because SUSE isn't fixing 10.0 and not everyone will be upgrading.
Comment 7 Danny Al-Gaaf 2006-01-24 21:05:00 UTC
Not sure if drop subfs make it better as on 10.0 but the time will show.