Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LU-1538 tests: run sanity-lfsck instead of lfsck
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
file_swap.sh
1
#!/bin/bash
2
3
DIR=$1
4
MAX=$2
5
6
while : ; do
7
file=$((RANDOM % $MAX))
8
new_file=$((RANDOM % MAX))
9
$LFS swap_layouts $DIR/$file $DIR/$new_file 2>/dev/null
10
done