Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-5093 test: dir_remote.sh change stripe count
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
dir_remote.sh
diff --git
a/lustre/tests/racer/dir_remote.sh
b/lustre/tests/racer/dir_remote.sh
index
77f9e58
..
1bc9c3a
100755
(executable)
--- a/
lustre/tests/racer/dir_remote.sh
+++ b/
lustre/tests/racer/dir_remote.sh
@@
-8,8
+8,11
@@
while /bin/true ; do
remote_dir=$((RANDOM % MAX))
file=$((RANDOM % MAX))
mdt_idx=$((RANDOM % MDTCOUNT))
remote_dir=$((RANDOM % MAX))
file=$((RANDOM % MAX))
mdt_idx=$((RANDOM % MDTCOUNT))
+ # stripe_count in range [1,MDTCOUNT]
+ # lfs mkdir treats stripe_count 0 and 1 the same
+ stripe_count=$(((RANDOM % MDTCOUNT) + 1))
mkdir -p $DIR 2> /dev/null
mkdir -p $DIR 2> /dev/null
- $LFS mkdir -i$mdt_idx -c$
MDTCOUNT
$DIR/$remote_dir 2> /dev/null
+ $LFS mkdir -i$mdt_idx -c$
stripe_count
$DIR/$remote_dir 2> /dev/null
touch $DIR/$remote_dir/$file 2> /dev/null
$LFS getdirstripe $DIR/$remote_dir > /dev/null 2>&1
done
touch $DIR/$remote_dir/$file 2> /dev/null
$LFS getdirstripe $DIR/$remote_dir > /dev/null 2>&1
done