summaryrefslogtreecommitdiffstats
path: root/extras/quota-metadata-cleanup.sh
blob: 37ad8bc31374a2a101d542595bc4126ff1388354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 $@