diff options
Diffstat (limited to 'extras/quota-metadata-cleanup.sh')
-rwxr-xr-x | extras/quota-metadata-cleanup.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/extras/quota-metadata-cleanup.sh b/extras/quota-metadata-cleanup.sh new file mode 100755 index 00000000000..37ad8bc3137 --- /dev/null +++ b/extras/quota-metadata-cleanup.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# This script is used to cleanup xattrs setup by quota-translator in (a) +# backend directory(ies). It takes a single or list of backend directories +# as argument(s). + +usage () +{ + echo >&2 "usage: $0 <list-of-backend-directories>" +} + +main () +{ + [ $# -lt 1 ] && usage + + INSTALL_DIR=`dirname $0` + + for i in $@; do + find $i -exec $INSTALL_DIR/quota-remove-xattr.sh '{}' \; + done + +} + +main $@ |