From e52a0cc23b16bf653ce544caaffa0e7ffb5fab4e Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sat, 16 Apr 2011 10:07:29 +0000 Subject: extras/quota-xattr-cleanup: don't follow symbolic links. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 2664 (Quota: recreating the volume on same bricks shows similar info as for earlier one using "list") URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2664 --- extras/quota-remove-xattr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/quota-remove-xattr.sh b/extras/quota-remove-xattr.sh index 83e8c292e84..7191f9bd443 100755 --- a/extras/quota-remove-xattr.sh +++ b/extras/quota-remove-xattr.sh @@ -13,11 +13,11 @@ main () { [ $# -ne 1 ] && usage $0 - XATTR_KEY_VALUE_PAIRS=`getfattr -d -m 'trusted.glusterfs.quota' $1 2>/dev/null | sed -e '/^# file/d'` + XATTR_KEY_VALUE_PAIRS=`getfattr -h -d -m 'trusted.glusterfs.quota' $1 2>/dev/null | sed -e '/^# file/d'` for i in $XATTR_KEY_VALUE_PAIRS; do XATTR_KEY=`echo $i | sed -e 's/\([^=]*\).*/\1/g'` - setfattr -x $XATTR_KEY $1 + setfattr -h -x $XATTR_KEY $1 done } -- cgit