3 # reduce LEVELS from 3 => 2 by CFS
4 LEVELS=2 ; [ -z "$1" ] || LEVELS=$1
5 DIRS=10 ; [ -z "$2" ] || DIRS=$2
6 FILES=10 ; [ -z "$2" ] || FILES=$3
7 NUMBER_OF_ACLS=50 ; [ -z "$3" ] || NUMBER_OF_ACLS=$4
9 function random_dir() {
11 #lfs lsetfacl -s "u::rwx,u:$[($RANDOM % $NUMBER_OF_ACLS)+1000]:rwx,g::rx,o:-" $1
14 function random_file() {
16 #lfs lsetfacl -s "u::rw,u:$[($RANDOM % $NUMBER_OF_ACLS)+1000]:rw,g::r,o:-" $1
21 if [ $LEVEL -eq 0 ]; then
23 while [ $I -lt $FILES ]; do
29 while [ $I -lt $DIRS ]; do