}
run_test 24 "reconstruct on non-existing object"
-# end commit on sharing tests
+# end commit on sharing tests
test_25() {
cancel_lru_locks osc
$LCTL set_param fail_loc=0x80001420
$MULTIOP $DIR1/$tdir/mdtdir/$tfile Osw4096c &
multiops+=($!)
- sleep 0.5
+ while [ ! -f $DIR1/$tdir/mdtdir/$tfile ]; do
+ sleep 0.5
+ done
$MULTIOP $DIR2/$tdir/mdtdir/$tfile oO_WRONLY:w4096c &
multiops+=($!)
sleep 0.5
wait $failpid
local failed=0
+ echo "pids: ${multiops[@]}"
for pid in "${multiops[@]}"; do
- wait $pid || ((failed++))
+ wait $pid
+ local rc=$?
+ if (( $rc != 0 )); then
+ echo "wait $pid failed, rc = $rc"
+ ((failed++))
+ fi
done
((failed == 0)) || error "$failed multiops failed"
}