diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-16 10:07:29 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-16 10:51:39 -0700 |
commit | e52a0cc23b16bf653ce544caaffa0e7ffb5fab4e (patch) | |
tree | 0cb24cda193f7c563cb4eadb0bad40de87d53519 /extras | |
parent | 70adbe7b71771b48e5bd8d79e38132afa04e4752 (diff) |
extras/quota-xattr-cleanup: don't follow symbolic links.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
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
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/quota-remove-xattr.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |