[Bugs] [Bug 1476324] New: md-cache: xattr values should not be checked with string functions

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 28 15:56:47 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1476324

            Bug ID: 1476324
           Summary: md-cache: xattr values should not be checked with
                    string functions
           Product: GlusterFS
           Version: 3.8
         Component: md-cache
          Assignee: bugs at gluster.org
          Reporter: gdeschner at redhat.com
                CC: bugs at gluster.org



Description of problem:

xattr caching does not work for values with a leading 0 (due to an internal
strcmp() for ""), given that often binary values are stored in xattrs (for e.g.
samba specific xattrs), this is currently a serious limitation.

Version-Release number of selected component (if applicable):


How reproducible:

Everytime

Steps to Reproduce:

gluster volume set VOLUME performance.cache-samba-metadata on
mount VOLUME via fuse to /mnt
touch /mnt/test
setfattr -n user.DOSATTRIB -v 0x00ff /mnt/test
echo $?
0
getfattr -n user.DOSATTRIB -d /mnt/test
/mnt/test: user.DOSATTRIB: No such attribute

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list