diff --git a/tests/golden/mmap b/tests/golden/mmap index 8d5a058e..33083c5c 100644 --- a/tests/golden/mmap +++ b/tests/golden/mmap @@ -10,14 +10,12 @@ thread 4 complete extents: 1 1 00000200: ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ................ -0 0: offset: 0 length: 2 flags: ..L extents: 1 == mmap write to an offline extent 0: offset: 0 length: 2 flags: O.L extents: 1 1 -0 0: offset: 0 length: 2 flags: ..L extents: 1 00000000 ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea ea |................| diff --git a/tests/tests/mmap.sh b/tests/tests/mmap.sh index 8b617a36..9fb96ca3 100644 --- a/tests/tests/mmap.sh +++ b/tests/tests/mmap.sh @@ -27,9 +27,7 @@ sleep 1 jobs | wc -l scoutfs stage "${F}-stage" "$F" -V "$vers" -o 0 -l 8192 # xfs_io thread will output 16 bytes of read data -sleep 1 -# should be 0 - no more waiting jobs, xfs_io should have exited -jobs | wc -l +wait scoutfs get-fiemap -L "$F" echo "== mmap write to an offline extent" @@ -43,9 +41,7 @@ sleep 1 jobs | wc -l scoutfs stage "${F}-stage" "$F" -V "$vers" -o 0 -l 8192 # no output here from write -sleep 1 -# should be 0 - no more waiting jobs, xfs_io should have exited -jobs | wc -l +wait scoutfs get-fiemap -L "$F" # read back contents to assure write changed the file dd status=none if="$F" bs=1 count=48 skip=512 | hexdump -C