Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HAL mount options issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
deadcollector
n00b
n00b


Joined: 31 Dec 2006
Posts: 8
Location: Russia, Moscow

PostPosted: Sun Dec 31, 2006 5:38 pm    Post subject: HAL mount options issue Reply with quote

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
View user's profile Send private message
z_sfeng
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 154
Location: Finland

PostPosted: Fri Mar 02, 2007 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum