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>
Mon, 28 Mar 2011 13:49:48 +0000 (14:49 +0100)
commit0d6fd9e1d2488841c912c5351086e536772837ef
tree76a46cfaa49235270ef6848879d87e74e72800d4
parent4e529e06a4500959cd783f5029354fea47a253a6
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
appliance/packagelist.in
fuse/Makefile.am
fuse/guestmount.c
fuse/test-fuse.sh