extended attributes support

28 views
Skip to first unread message

Augie Sodora

unread,
Jun 11, 2010, 2:42:37 PM6/11/10
to zfs-fuse
Hello all,

I have been trying to get GlusterFS to mirror a ZFS-FUSE (0.6.9)
filesystem across two machines and have had some difficulty with
Gluster requiring extended attributes on the underlying filesystem. I
see from the source that zfs-fuse has some degree of support for
xattrs, and I tried to reenable them by commenting out the "#if 0" and
accompanying #endif in zfs_operations.c:1861, although I don't think
it had any effect.

It's not by any means crucial for me but I think it would be fun to
test it out a little bit.

Augie

Augie Sodora

unread,
Jun 11, 2010, 3:36:01 PM6/11/10
to zfs-fuse
After trying again with cleaner builds it seems to have worked without
any complaints from zfs-fuse or gluster.

I'll run some benchmarks to see exactly how much of an effect fuse's
lack of caching of attributes has on performance.

Augie

Emmanuel Anne

unread,
Jun 11, 2010, 3:58:39 PM6/11/10
to zfs-...@googlegroups.com
They were disabled for now because small io operations are noticeably slower with xattrs enabled. After thinking about it I think the best solution for now is to allow to enable them from the command line.

You'll see quite some big difference with something like
dd if=/dev/zero of=image count=10000 bs=1k
because for each of 10000 operations here lsxattr is called on the image file to check if it hasn't changed !

2010/6/11 Augie Sodora <aug...@gmail.com>
--
To post to this group, send email to zfs-...@googlegroups.com
To visit our Web site, click on http://zfs-fuse.net/



--
zfs-fuse git repository : http://rainemu.swishparty.co.uk/cgi-bin/gitweb.cgi?p=zfs;a=summary

August Sodora

unread,
Jun 21, 2010, 3:23:51 PM6/21/10
to zfs-...@googlegroups.com
In case anybody else is interested, I have attached a patch which will enable xattrs when placed in the root of the official repository and run with "patch -p0 < enable-xattr.patch"

Augie
enable-xattr.patch
Reply all
Reply to author
Forward
0 new messages