Re: [PATCH blktests] loop/011: skip if running on kernel older than v6.10

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

 



Hi!
> The loop/011 is regression test for kernel commit 5f75e081ab5c ("loop: 
> Disable fallocate() zero and discard if not supported") which requires 
> minimum kernel version 6.10. So running this test on kernel version
> older than v6.10 would FAIL. This patch ensures that we skip running 
> loop/011 if kernel version is older than v6.10.

The patch has been backported to 6.9 stable as well.

> Signed-off-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>
> ---
>  tests/loop/011 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/loop/011 b/tests/loop/011
> index 35eb39b..b674dd7 100755
> --- a/tests/loop/011
> +++ b/tests/loop/011
> @@ -9,6 +9,7 @@
>  DESCRIPTION="Make sure unsupported backing file fallocate does not fill dmesg with errors"
>  
>  requires() {
> +	_have_kver 6 10
>  	_have_program mkfs.ext2
>  }
>  
> -- 
> 2.45.2
> 

-- 
Cyril Hrubis
chrubis@xxxxxxx




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux