Whamcloud - gitweb
LU-7174 build: add mmap_cat to .gitignore
[fs/lustre-release.git] / lustre / tests / racer / file_chmod.sh
1 #!/bin/bash
2
3 DIR=$1
4 MAX=$2
5
6 while true; do
7         file=$DIR/$((RANDOM % MAX))
8         mode=$(printf '%o' $((RANDOM % 010000)))
9         chmod $mode $file 2> /dev/null
10 done