476b672347
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@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
25 lines
426 B
Bash
Executable File
25 lines
426 B
Bash
Executable File
#!/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 $@
|