hald not parsing policies under /etc/hal/fdi/policy on kubuntu feisty

Asked by Adriano Provvisiero on 2007-05-19

Hello,

recently i installed ntfs-config, a package that attempts to tell hal to mount ntfs partitions using the ntfs-3g (read/write) driver.
ntfs-config tries to achieve so by symlinking one of its policy files under /etc/hal/fdi/policy. The file gets blatantly ignored (even if the hald cache gets invalidated if any modifications are made to such file, judging from the output of hald --daemon=no --verbose=yes, therefore hald is picking that file up). The driver hald tries to use when mounting the partition is still the read only ntfs driver.

The same policy file, nevertheless, works like a charm if placed under /usr/share/hal/fdi/policy/10osvendor, where all of the other standard policy files already reside. Is this a mistake on ntfs-config's side (ie the /etc directory isn't parsed by design by hal), or is this not intentional and somehow hald is skipping out that directory ?

here's the policy file:

--

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

<!-- file created by ntfs-config -->
<!-- mount ntfs volume with the ntfs-3g driver to enable write support -->

    <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>
            </match>
    </device>

</deviceinfo>

--

and a few more infos:

hal package version: 0.5.9-1ubuntu2~feisty1
ntfs-config version: Version: 0.5.5-0ubuntu1
uname -r: 2.6.20-15-generic
the distribution is Kubuntu Feisty 7.04

Thanks for your time.
nuu

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu hal Edit question
Assignee:
No assignee Edit question
Last query:
2007-05-19
Last reply:
2007-05-20
Martin Pitt (pitti) said : #1

It is supposed to evaluate the files there, so this looks like a bug. Can you please file one with the same information?

Can you help with this problem?

Provide an answer of your own, or ask Adriano Provvisiero for more information if necessary.

To post a message you must log in.