By the way, my main problem is really that ZFS does not support xattr
on symlinks at all. This is the related bug for the zfs kernel
project:
https://github.com/zfsonlinux/zfs/issues/272
It's a small issue which makes it incompatible to run a ZFS + gluster
stack. Is it possible to make a workaround for this in zfs-fuse so the
sun code actually stores xattr's for symlinks instead of returning
ENOSYS?
Here is another related link:
http://download.gluster.com/pub/gluster/glusterfs/doc/solaris-related-xattrs.txt
~Hannes
On Aug 18, 11:01 pm, Emmanuel Anne <
emmanuel.a...@gmail.com> wrote:
> Ok, it's fixed, I'll commit the fix just after posting this mail.
> So the details :
>
> for some reason sun changed the way xattr lookups are done on symlinks, so
> it's really related to symlinks after all. When you try to do a getxattr on
> a symlink (or any xattr function anyway), it returns ENOSYS.
> Well that's very nice and all, but if you do this to fuse, it will consider
> that xattrs are not supported on this fs and will never call the function
> again, returning ENOSYS all the time !
> So a quick fix is to return ENOATTR instead of ENOSYS at this place (this is
> when it tries to lookup the directory containing xattrs).
>
> To reproduce the bug with the not patched version :
> setfxattr -n thing -v value file
> getfattr -d -m - file
> -> works
> then ls any symlink on the filesystem,
> Then getfattr -d -m - file
> -> not supported
>
> 2011/8/18 sgheeren <
sghee...@hotmail.com>
>
>
>
>
>
>
>
>
>
> > **
> > On 08/18/2011 09:40 PM, Emmanuel Anne wrote:
>
> > Errr, well I use all the time (well not all the time, but everytime I need
> > to use xattrs) the long option in zfsrc (enable-xattr) and never had any
> > problem with it.
> > And I just used it now, and it enabled the xattrs correctly.
>
> > I found out a glitch that exists only in master and main; it is already
> > fixed in testing and unstable (don't know why).
>
> > I've submitted an updated deb source package to the ubuntu build servers;
> > The fixed package should be available in 2-8 hours according to the current
> > build queue:
>
> >
https://launchpad.net/~bugs-sehe/+archive/zfs-fuse/+builds<
https://launchpad.net/%7Ebugs-sehe/+archive/zfs-fuse/+builds>
>
> > On 08/18/2011 09:40 PM, Emmanuel Anne wrote:
>
> > You can test with something like
> > setfattr -n thing -v dummy file
> > getfattr -d -m - file
> > -> Not supported operation.
>
> > With me (on maint/testing:)
>
> > root@natty:/tmp/tanq# setfattr -n thing -v dummy file
> > root@natty:/tmp/tanq# getfattr -d -m - file
> > # file: file
> > thing="dummy"
>
> > No problems... Linking files didn't change that. So I think Emmanuel is
> > right that the relation with 'ln' is spurious.
>
> > However, I don't know what you meant by 'the lookup is not done right',
> > Emmanuel?
>
> > --
> > To post to this group, send email to
zfs-...@googlegroups.com
> > To visit our Web site, click onhttp://
zfs-fuse.net/