diff options
Diffstat (limited to 'extras/quota-remove-xattr.sh')
-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 } |