[ $RUNAS_ID -eq $UID ] &&
skip_env "RUNAS_ID = UID = $UID -- skipping"
- chmod 666 /dev/obd
denied_cnt=$(($($RUNAS $LFS check servers 2>&1 |
grep "Permission denied" | wc -l)))
if [ $denied_cnt -ne 0 ]; then
local old_jobenv=$($LCTL get_param -n jobid_var)
[ $old_jobenv != $JOBENV ] && jobstats_set $JOBENV
- if [[ $PERM_CMD = *"set_param -P"* ]]; then
+ if [[ $PERM_CMD == *"set_param -P"* ]]; then
stack_trap "do_facet mgs $PERM_CMD jobid_var=$old_jobenv" EXIT
else
stack_trap "do_facet mgs $PERM_CMD \
}
run_test 230k "file data not changed after dir migration"
+test_230l() {
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
+ [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.11.56) ] &&
+ skip "Need MDS version at least 2.11.56"
+
+ $LFS mkdir -i 0 -c 1 $DIR/$tdir || error "mkdir failed"
+ createmany -o $DIR/$tdir/f___________________________________ 1000 ||
+ error "create files under remote dir failed $i"
+ $LFS migrate -m 1 $DIR/$tdir || error "migrate failed"
+}
+run_test 230l "readdir between MDTs won't crash"
+
test_231a()
{
# For simplicity this test assumes that max_pages_per_rpc
local offset=0
local i
- echo "Test SOM for single client muti-threaded($num) write"
+ echo "Test SOM for single client multi-threaded($num) write"
$TRUNCATE $DIR/$tfile 0
for ((i = 0; i < $num; i++)); do
$MULTIOP $DIR/$tfile Oz${offset}w${bs}c &
offset=0
i=0
- echo "Test SOM for muti-client ($num) writes"
+ echo "Test SOM for multi-client ($num) writes"
$TRUNCATE $DIR/$tfile 0
for client in ${CLIENTS//,/ }; do
do_node $client $MULTIOP $DIR/$tfile Oz${offset}w${bs}c &
local offset=0
local i=0
- echo "Test SOM for muti-client ($num) writes"
+ echo "Test SOM for multi-client ($num) writes"
touch $DIR/$tfile || error "touch $tfile failed"
$TRUNCATE $DIR/$tfile 0
for client in ${CLIENTS//,/ }; do