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-12175 tests: Partial revert of LU-11636
[fs/lustre-release.git]
/
lustre
/
tests
/
test-framework.sh
diff --git
a/lustre/tests/test-framework.sh
b/lustre/tests/test-framework.sh
index
fb831e1
..
158eeb1
100755
(executable)
--- a/
lustre/tests/test-framework.sh
+++ b/
lustre/tests/test-framework.sh
@@
-8352,8
+8352,8
@@
generate_logname() {
test_mkdir() {
local path
local p_option
test_mkdir() {
local path
local p_option
- local dirstripe_count=${DIRSTRIPE_COUNT:-"
-1
"}
- local dirstripe_index=${DIRSTRIPE_INDEX:-
"-1"
}
+ local dirstripe_count=${DIRSTRIPE_COUNT:-"
2
"}
+ local dirstripe_index=${DIRSTRIPE_INDEX:-
$((base % $MDSCOUNT))
}
local OPTIND=1
while getopts "c:i:p" opt; do
local OPTIND=1
while getopts "c:i:p" opt; do
@@
-8385,7
+8385,7
@@
test_mkdir() {
local mdt_index
if [ $dirstripe_index -eq -1 ]; then
local mdt_index
if [ $dirstripe_index -eq -1 ]; then
- mdt_index=$((
RANDOM
% MDSCOUNT))
+ mdt_index=$((
base
% MDSCOUNT))
else
mdt_index=$dirstripe_index
fi
else
mdt_index=$dirstripe_index
fi