fuse: Fix getxattr, listxattr calls and add a regression test (RHBZ#691389).
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 28 Mar 2011 13:45:23 +0000 (14:45 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Mar 2011 19:29:04 +0000 (20:29 +0100)
commita41b116767cfb0880fae10ad1d59d652e74f8529
tree974cb99ebd9ee2dace29b439cf31ff272715e0ea
parent97245561cf6a7f0b6c5d2eac8c2bdf1618d466ec
fuse: Fix getxattr, listxattr calls and add a regression test (RHBZ#691389).

The documentation for the getxattr and listxattr calls is not very
clear and as a result we were always returning something different
from that which the Linux kernel would usually return.

This fixes these calls, at least far enough that both the 'getfattr'
and 'getfacl' programs now work fine on FUSE-mounted filesystems.

Note that SELinux attrs are *not* passed through.  This appears to be
a known bug between SELinux and FUSE.  For more information see:

http://www.spinics.net/lists/selinux/msg09460.html

Cherry picked from commit 0d6fd9e1d2488841c912c5351086e536772837ef:
  - rebased on stable-1.8 branch
  - removed unintended hunk (which changed -m documentation in
      guestmount --help output)
  - removed parts of test-fuse.sh which will fail because
      there is no support for passing acl,user_xattr options in
      an extended -m option
appliance/packagelist.in
fuse/Makefile.am
fuse/guestmount.c
fuse/test-fuse.sh