From fd500d4396f910e4cf759e0fffa4daf4ed24745a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 23 Aug 2014 02:14:36 -0700 Subject: porting: Provide setfattr/getfattr implementation - Use 'getfattr' properly avoid redundant options during xattr query - Untabify certain parts of tests (remove tabs) - Avoid backtick evaluation for certain values to make code more portable. - Use awk on FreeBSD/Darwin, since 'wc' implementation is broken and adds spurious spaces in its output. Change-Id: I7dcc0b70874e43b4cda8c306ed18a31b7a3f990a BUG: 1131713 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8520 Tested-by: Gluster Build System Reviewed-by: Emmanuel Dreyfus Tested-by: Emmanuel Dreyfus --- tests/bugs/bug-1111490.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/bugs/bug-1111490.t') diff --git a/tests/bugs/bug-1111490.t b/tests/bugs/bug-1111490.t index 7b13c8798ec..289ac70b4a1 100644 --- a/tests/bugs/bug-1111490.t +++ b/tests/bugs/bug-1111490.t @@ -12,19 +12,19 @@ TEST $CLI volume create $V0 $H0:$B0/${V0}0 TEST $CLI volume start $V0 # mount with auxillary gfid mount -TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 --aux-gfid-mount +TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0 --aux-gfid-mount # create file with specific gfid uuid=`uuidgen` EXPECT "File creation OK" gfid-access.py $M0 ROOT file0 $uuid file # check gfid -EXPECT "$uuid" getfattr -m . --only-values -n glusterfs.gfid.string $M0/file0 +EXPECT "$uuid" getfattr --only-values -n glusterfs.gfid.string $M0/file0 # unmount and mount again so as to start with a fresh inode table # or use another mount... TEST umount $M0 -TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 --aux-gfid-mount +TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0 --aux-gfid-mount # touch the file again (gfid-access.py handles errno) EXPECT "File creation OK" gfid-access.py $M0 ROOT file0 $uuid file -- cgit