Bug 773567

Summary: gluster's GET/PUT method feature with getxattr()/setxattr() is not working.
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: coreAssignee: Ric Wheeler <rwheeler>
Status: CLOSED EOL QA Contact:
Severity: unspecified Docs Contact:
Priority: low    
Version: mainlineCC: chrisw, gluster-bugs, rwheeler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-22 15:46:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amar Tumballi 2012-01-12 09:37:41 UTC
Description of problem:
Long back when GlusterFS was in still Alpha state (may be 1.3.x releases), we had a feature to create/edit a file, read a file using setxattr()/getxattr() syscalls.
Currently some part of the code is present in posix.c but its not getting hit at all. (found during code-coverage runs)

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

How reproducible:
everytime.


Steps to Reproduce:
1. Make sure its a empty mountpoint, with just one brick in volume (ls /mnt/glusterfs)

2. bash# setxattr -n glusterfs.file.testfile -v "helloworld" /mnt/glusterfs

3. bash# cat /mnt/glusterfs/testfile (should show 'helloworld' as content).
  
Actual results:
setxattr command fails

Expected results:
The above sequence of commands should work fine.

Comment 1 Amar Tumballi 2012-01-17 00:46:57 UTC
*** Bug 782257 has been marked as a duplicate of this bug. ***

Comment 2 Amar Tumballi 2012-01-18 11:34:54 UTC
*** Bug 782685 has been marked as a duplicate of this bug. ***

Comment 3 Amar Tumballi 2012-10-25 11:58:09 UTC
currently planning to remove the 'edit'/modify option of the file... only create and read will be supported from the xattr, which helps to reduce the race conditions. posted patch @ http://review.gluster.org/2605

Comment 7 Kaleb KEITHLEY 2015-10-22 15:46:38 UTC
because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice.

If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it.