File: quota-metadata-cleanup.sh

package info (click to toggle)
glusterfs 3.2.7-3%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 16,884 kB
  • sloc: ansic: 195,466; sh: 9,573; python: 1,564; makefile: 587; yacc: 471; lisp: 124; lex: 69
file content (24 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download
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 $@