View previous topic :: View next topic |
Author |
Message |
deadcollector n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Dec 2006 Posts: 8 Location: Russia, Moscow
|
Posted: Sun Dec 31, 2006 5:38 pm Post subject: HAL mount options issue |
|
|
Hello, and Happy New Year!
I use kde and hal. And I want to mount all vfat partitions with iocharset=koi8-r codepage=866 options. I made my own file in /usr/share/hal/fdi/policy
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="vfat">
<merge key="volume.policy.mount_option.iochaset=koi8-r" type="bool">true</merge>
<merge key="volume.policy.mount_option.codepage=866" type="bool">true</merge>
</match>
</device>
</deviceinfo>
In hal-device output I see somethink like this volume.policy.mount_option.iochaset=koi8-r = true (bool).
But this options have no effect.
To temporary fix problem I modified hald-mount script, but i want to make this work throught hal policies.
PS. Sorry for bad english _________________ si vis pacem parabellum |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
z_sfeng Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 Apr 2004 Posts: 154 Location: Finland
|
Posted: Fri Mar 02, 2007 7:02 am Post subject: |
|
|
Same problem here. I found all of the volume.policy.* has no effect at all.
I tried the following options.
Code: |
<append key="volume.mount.valid_options" type="strlist">utf8</append>
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">gid=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
<merge key="volume.policy.mount_option.gid=100" type="bool">true</merge>
<merge key="volume.policy.mount_option.umask=007" type="bool">true</merge>
<merge key="volume.policy.should_mount" type="bool">false</merge>
<merge key="volume.ignore" type="bool">true</merge>
|
as my understanding:
1. "valid_options" add pattern which allows matched mount option to be passed to mount.
2. "policy.mount_option" add mount options to mount script.
the result is:
1. "utf8" and "uid=" do take effect. since they are given (by whom?) to hal-mount;
2. pattern "gid=" and "umask=" have no effect. because there's no "gid" or "umask" option in default hal-mount options.
3. so I add "policy.mount_option". No effect. Actually, I think all of the "policy.*" has no effect at all.
4. "volume.ignore" takes effect. when it's true. no mount happened. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|