add acl,user_xattr to ext3 removable storage devices

Johannes Zellner johannes at zellner.org
Thu Nov 24 22:42:38 PST 2005


On Thu, Nov 24, 2005 at 08:29:05PM +0300, Andrey Borzenkov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 24 November 2005 12:09, Johannes Zellner wrote:
> > Hello,
> >
> > how can I add mount options like acl or user_xattr to ext3 removable
> > storage devices?
> 
> Create FDI file that will match on file system type (volume.fstype) and merge 
> required options (volume.policy.mount_option.XXX). Location of FDI is version 
> and distribution dependent.
> 
> This assumes HAL can distinguish between ext2 and ext3; at least 0.5.4 (that I 
> have currently) can.

ok. I created a .fdi file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<deviceinfo version="0.2">
  <device>
    <match key="volume.label" string="my_label">
      <match key="volume.fstype" string="ext3">
        <merge key="volume.policy.mount_option.acl" type="bool">true</merge>
        <merge key="volume.policy.mount_option.user_xattr" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

and lshal shows the options acl and user_xattr for my device with
"my_label" correctly. But still the device gets mounted w/o these
options. (Both on debian with gnome-volume-manager and SuSE with subfs
mount).

-- 
Johannes


More information about the hal mailing list