← Back to team overview

ecryptfs-users team mailing list archive

Re: Unable to mount with "-o xattr"

 

On Sat May 28, 2011 at 01:40:50PM +0200, Hagen F?rstenau <hagen@xxxxxxxxxxxxx> wrote:
> Hi,
> 
> I'd like to mount an ecryptfs file system with the "-o xattr" option
> (assuming that it would improve performance of stat calls).
> 
> I've mounted the underlying ext4 file system with "user_xattr" and made
> sure that setting xattrs with "setfattr" works as it should. But after
> mounting with "mount -t ecryptfs -o xattr", the feature doesn't seem to

You're looking for the ecryptfs_xattr mount option. It is an
eCryptfs-specific mount option, so we try not to pollute the global
mount option namespace by using the "ecryptfs_" prefix.

> work: files are still at least 12K big, "mount" doesn't show "xattr"
> among the options of the ecryptfs mount, and "getfattr" on the
> underlying files doesn't show anything.
> 
> Any ideas where to look for the problem? There isn't anything about
> ecryptfs in syslog, except for
> 
> mount.ecryptfs: Error initializing key module
> [/usr/lib/ecryptfs/libecryptfs_key_mod_gpg.so]; rc = [-22]"
> 
> which seems to be unrelated.

The GPG key module isn't fully implemented so it returns an error during
initialization. You can ignore this.

If you installed ecryptfs-utils with your distro's package manager,
you may want to let the package maintainer know that there is no need to
build that key module at this time. If you built ecryptfs-utils from
source, don't pass --enable-gpg to the configure script.

Tyler

> 
> # uname -a
> Linux neko 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64
> GNU/Linux
> 
> Cheers,
> Hagen
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~ecryptfs-users
> Post to     : ecryptfs-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ecryptfs-users
> More help   : https://help.launchpad.net/ListHelp


References