remote_mds_nodsh && skip "remote MDS with nodsh" && return
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
touch $DIR2
mkdir $DIR1/$tfile &
PID1=$!; pdo_sched
# all operations above shouldn't wait the first one
check_pdo_conflict $PID1 || error "parallel operation is blocked"
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
wait $PID1
rm -rf $DIR/$tfile*
return 0
remote_mds_nodsh && skip "remote MDS with nodsh" && return
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
touch $DIR1/$tfile &
PID1=$!; pdo_sched
# open|create
# all operations above shouldn't wait the first one
check_pdo_conflict $PID1 || error "parallel operation is blocked"
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
wait $PID1
rm -rf $DIR/$tfile*
return 0
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile $DIR1/$tfile-0 &
PID1=$!; pdo_sched
# open|create
# all operations above shouldn't wait the first one
check_pdo_conflict $PID1 || error "parallel operation is blocked"
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
wait $PID1
rm -rf $DIR/$tfile*
return 0
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$!; pdo_sched
# open|create
# all operations above shouldn't wait the first one
check_pdo_conflict $PID1 || error "parallel operation is blocked"
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
wait $PID1
return 0
}
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-0 &
PID1=$!; pdo_sched
# open|create
# all operations above shouldn't wait the first one
check_pdo_conflict $PID1 || error "parallel operation is blocked"
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
wait $PID1
rm -rf $DIR/$tfile*
return 0
test_41a() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
mkdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; echo "mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "mkdir must fail"
rm -rf $DIR/$tfile*
test_41b() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "create must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
link $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "link must fail"
rm -rf $DIR/$tfile*
test_41d() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
rm $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "unlink must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
mv $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
test_41f() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-2 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
test_41g() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "stat must succeed"
rm -rf $DIR/$tfile*
test_41h() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$MULTIOP $DIR1/$tfile oO_CREAT:O_RDWR:c &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
test_42a() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
mkdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "mkdir must fail"
rm -rf $DIR/$tfile*
test_42b() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "create must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
link $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "link must fail"
rm -rf $DIR/$tfile*
test_42d() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
rmdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "unlink must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
mv -T $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "rename must fail"
rm -rf $DIR/$tfile*
test_42f() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-2 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
test_42g() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "stat must succeed"
rm -rf $DIR/$tfile*
test_42h() {
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mkdir $DIR1/$tfile &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "create must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
link $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "link must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
rm $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "unlink must fail"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
mv -u $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-2 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "rename must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "stat must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
rm $DIR1/$tfile &
PID1=$! ; pdo_sched
$LFS mkdir -i 1 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 &&
{ wait $PID1; error "remote mkdir isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "remote mkdir must succeed"
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mkdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; date;error "mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "mkdir must fail"
date
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "create must fail"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile-2
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
link $DIR2/$tfile-3 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "link must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
rm $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "unlink must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile-2
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile-3 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile-2
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-3 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "stat must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK2 0x146
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000146
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000146 2>/dev/null || true"
mv $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
$LFS mkdir -i 1 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "remote mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "remote mkdir must fail"
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "create must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
link $DIR2/$tfile-3 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "link must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
rm $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "unlink must fail"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
mv $DIR2/$tfile-3 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-3 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "rename must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "stat must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
mv $DIR1/$tfile $DIR1/$tfile-2 &
PID1=$! ; pdo_sched
$LFS mkdir -i 1 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "create remote dir isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "create remote dir must succeed"
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mkdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "mkdir must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
$MULTIOP $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "create isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "create must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
link $DIR2/$tfile $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "link must fail"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
rm $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "unlink isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "unlink must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile-2
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile-3 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
touch $DIR1/$tfile-2
touch $DIR1/$tfile-3
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-3 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "getattr isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "stat must succeed"
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
ls -lia $DIR2/ > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "readdir isn't blocked"; }
wait $PID2
rm -rf $DIR/$tfile*
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
link $DIR1/$tfile-2 $DIR1/$tfile &
PID1=$! ; pdo_sched
$LFS mkdir -i 1 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "remote mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "remote mkdir must fail"
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
pdo_lru_clear
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
mkdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "mkdir isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "mkdir must fail"
rm -rf $DIR/$tfile*
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
pdo_lru_clear
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
sleep 1 # please do not remove this sleep, see LU-10754
multiop $DIR2/$tfile oO_CREAT:O_EXCL:c &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "create isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "create must fail"
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
link $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1; error "link isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "link must fail"
rm -rf $DIR/$tfile*
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
rmdir $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "unlink isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rmdir must succeed"
pdo_lru_clear
touch $DIR1/$tfile-2
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv -T $DIR2/$tfile-2 $DIR2/$tfile &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "rename isn't blocked"; }
wait $PID2 ; [ $? -ne 0 ] || error "rename must fail"
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
mv $DIR2/$tfile $DIR2/$tfile-2 &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "rename isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "rename must succeed"
sync_all_data
pdo_lru_clear
#define OBD_FAIL_ONCE|OBD_FAIL_MDS_PDO_LOCK 0x145
- do_facet $SINGLEMDS lctl set_param fail_loc=0x80000145
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0x80000145 2>/dev/null || true"
$LFS mkdir -i 1 $DIR1/$tfile &
PID1=$! ; pdo_sched
stat $DIR2/$tfile > /dev/null &
PID2=$! ; pdo_sched
- do_facet $SINGLEMDS lctl set_param fail_loc=0
+ do_nodes $(comma_list $(mdts_nodes)) \
+ "lctl set_param -n fail_loc=0 2>/dev/null || true"
check_pdo_conflict $PID1 && { wait $PID1;
error "getattr isn't blocked"; }
wait $PID2 ; [ $? -eq 0 ] || error "stat must succeed"