mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/163: make readahead run on the seed device
There is a long lived bug that btrfs wait for readahead to finish indefinitely when readahead zone is inserted into seed devices. Current write size to the file "foobar" is too small to run readahead before the replacing on seed device. So, increase the write size to reproduce the issue. Following patch fixes it: "btrfs: start readahead also in seed devices" Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ create_seed()
|
||||
{
|
||||
_mkfs_dev $dev_seed
|
||||
run_check _mount $dev_seed $SCRATCH_MNT
|
||||
$XFS_IO_PROG -f -d -c "pwrite -S 0xab 0 256K" $SCRATCH_MNT/foobar >\
|
||||
$XFS_IO_PROG -f -d -c "pwrite -S 0xab 0 4M" $SCRATCH_MNT/foobar >\
|
||||
/dev/null
|
||||
echo -- gloden --
|
||||
od -x $SCRATCH_MNT/foobar
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ QA output created by 163
|
||||
-- gloden --
|
||||
0000000 abab abab abab abab abab abab abab abab
|
||||
*
|
||||
1000000
|
||||
20000000
|
||||
-- sprout --
|
||||
0000000 abab abab abab abab abab abab abab abab
|
||||
*
|
||||
1000000
|
||||
20000000
|
||||
|
||||
Reference in New Issue
Block a user