[LTP] [Patch v6 7/8] swapon/off: enable all_filesystem in swap test

Li Wang liwang@redhat.com
Thu Feb 1 07:57:14 CET 2024


On Thu, Feb 1, 2024 at 3:01 AM Petr Vorel <pvorel@suse.cz> wrote:

> Hi Li,
>
> also I got failures on ppc64le in our CI
>
> * swapoff01 6.7.2 and other versions up to 4.12 based kernels on ppc64le
> ...
> tst_supported_fs_types.c:97: TINFO: Kernel supports tmpfs
> tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
> tst_test.c:1701: TINFO: === Testing on ext2 ===
> tst_test.c:1117: TINFO: Formatting /dev/loop0 with ext2 opts='' extra
> opts=''
> mke2fs 1.47.0 (5-Feb-2023)
> tst_test.c:1131: TINFO: Mounting /dev/loop0 to /tmp/LTP_swazu2fTl/mntpoint
> fstyp=ext2 flags=0
> tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
> libswap.c:146: TBROK: Failed to create swapfile
>


Err, I reproduce it with an RHEL9 ppc64le too.
I guess it does not allow to create a file that size less than page_size.

Once I replace the blk_size with page_size, all tests get passed.



>
> Summary:
> passed   0
> failed   0
> broken   1
> skipped  0
> warnings 0
> ### TEST swapoff01 COMPLETE >>> 2.
>
> * swapon03 on 6.7.2 on ppc64le
> ...
> tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
> tst_test.c:1701: TINFO: === Testing on ext2 ===
> tst_test.c:1117: TINFO: Formatting /dev/loop0 with ext2 opts='' extra
> opts=''
> mke2fs 1.47.0 (5-Feb-2023)
> tst_test.c:1131: TINFO: Mounting /dev/loop0 to /tmp/LTP_swaT8ZD57/mntpoint
> fstyp=ext2 flags=0
> tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
> Failed to create swapfile: swapfile02
> swapon03.c:180: TFAIL: Failed to setup swaps
>
> Summary:
> passed   0
> failed   1
> broken   0
> skipped  0
> warnings 0
>
> * swapon03 on very old kernels (>= 4.4)
> ...
> tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
> tst_test.c:1701: TINFO: === Testing on ext2 ===
> tst_test.c:1118: TINFO: Formatting /dev/loop0 with ext2 opts='' extra
> opts=''
> mke2fs 1.42.11 (09-Jul-2014)
> tst_test.c:1132: TINFO: Mounting /dev/loop0 to /tmp/LTP_swahOeodw/mntpoint
> fstyp=ext2 flags=0
> tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
> libswap.c:37: TINFO: FS_NOCOW_FL attribute set on swapfile02
> Failed to create swapfile: swapfile02
> swapon03.c:180: TFAIL: Failed to setup swaps
>
> Summary:
> passed   0
> failed   1
> broken   0
> skipped  0
> warnings 0
>
> All other tests are working.
>
> Kind regards,
> Petr
>
>

-- 
Regards,
Li Wang


More information about the ltp mailing list