Re: [PATCH v2] ext4/032: add a new testcase in online resize tests

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Mon, Nov 11, 2024 at 04:21:00PM +0100, Alexander Mikhalitsyn wrote:
> Add a new testcase for [1] commit in ext4 online resize testsuite.
> 
> Link: https://lore.kernel.org/linux-ext4/20240927133329.1015041-1-libaokun@xxxxxxxxxxxxxxx [1]
> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@xxxxxxxxxxxxx>
> ---

This version looks good to me,

Reviewed-by: Zorro Lang <zlang@xxxxxxxxxx>

>  tests/ext4/032     |  6 ++++++
>  tests/ext4/032.out | 18 ++++++++++++++++++
>  2 files changed, 24 insertions(+)
> 
> diff --git a/tests/ext4/032 b/tests/ext4/032
> index 6bc3b61b..238ab178 100755
> --- a/tests/ext4/032
> +++ b/tests/ext4/032
> @@ -10,6 +10,9 @@
>  . ./common/preamble
>  _begin_fstest auto quick ioctl resize
>  
> +_fixed_by_kernel_commit 6121258c2b33 \
> +	"ext4: fix off by one issue in alloc_flex_gd()"
> +
>  BLK_SIZ=4096
>  CLUSTER_SIZ=4096
>  
> @@ -136,6 +139,9 @@ for CLUSTER_SIZ in 4096 16384 65536; do
>  
>  	## Extending a 2/3rd block group to 1280 block groups.
>  	ext4_online_resize $(c2b 24576) $(c2b 41943040)
> +
> +	# tests for "ext4: fix off by one issue in alloc_flex_gd()"
> +	ext4_online_resize $(c2b 6400) $(c2b 786432)
>  done
>  
>  status=0
> diff --git a/tests/ext4/032.out b/tests/ext4/032.out
> index b372b014..d5d75c9e 100644
> --- a/tests/ext4/032.out
> +++ b/tests/ext4/032.out
> @@ -60,6 +60,12 @@ QA output created by 032
>  +++ resize fs to 41943040
>  +++ umount fs
>  +++ check fs
> ++++ truncate image file to 786432
> ++++ create fs on image file 6400
> ++++ mount image file
> ++++ resize fs to 786432
> ++++ umount fs
> ++++ check fs
>  ++ set cluster size to 16384
>  +++ truncate image file to 98304
>  +++ create fs on image file 65536
> @@ -115,6 +121,12 @@ QA output created by 032
>  +++ resize fs to 167772160
>  +++ umount fs
>  +++ check fs
> ++++ truncate image file to 3145728
> ++++ create fs on image file 25600
> ++++ mount image file
> ++++ resize fs to 3145728
> ++++ umount fs
> ++++ check fs
>  ++ set cluster size to 65536
>  +++ truncate image file to 393216
>  +++ create fs on image file 262144
> @@ -170,3 +182,9 @@ QA output created by 032
>  +++ resize fs to 671088640
>  +++ umount fs
>  +++ check fs
> ++++ truncate image file to 12582912
> ++++ create fs on image file 102400
> ++++ mount image file
> ++++ resize fs to 12582912
> ++++ umount fs
> ++++ check fs
> -- 
> 2.43.0
> 





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux