Skip to content
Snippets Groups Projects
Commit b4e183cb authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=13599

i=Nathan
i=Scjody

use multiop instead of exec
parent 14531770
No related branches found
No related tags found
No related merge requests found
......@@ -454,9 +454,10 @@ test_20b() { # bug 10480
run_test 20b "write, unlink, eviction, replay, (test mds_cleanup_orphans)"
test_20c() { # bug 10480
dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000
exec 100< $DIR/$tfile
multiop $DIR/$tfile Ow_c &
pid=$!
# give multiop a chance to open
sleep 1
ls -la $DIR/$tfile
......@@ -464,8 +465,7 @@ test_20c() { # bug 10480
df -P $DIR || df -P $DIR || true # reconnect
exec 100<&-
kill -USR1 $pid
test -s $DIR/$tfile || error "File was truncated"
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment