From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5 7/8] swapon/off: enable all_filesystem in swap test
Date: Mon, 29 Jan 2024 09:03:00 +0100 [thread overview]
Message-ID: <20240129080300.GA584389@pevik> (raw)
In-Reply-To: <20240128024838.2699248-8-liwang@redhat.com>
Hi Li,
> +++ b/testcases/kernel/syscalls/swapoff/swapoff02.c
> @@ -18,6 +18,8 @@
> #include "lapi/syscalls.h"
> #include "libswap.h"
> +#define MNTPOINT "mntpoint"
> +
> static int setup01(void);
> static void cleanup01(void);
> @@ -84,14 +86,13 @@ static void setup(void)
> is_swap_supported("./tstswap");
This needs to be run on MNTPOINT, see swapon01.c (change from second commit I
made: "swapon01: Test on all filesystems").
The same problem is in other tests. Otherwise we check always on TMPDIR
(which TCONF when /tmp is tmpfs).
Kind regards,
Petr
# ./swapoff02
tst_device.c:96: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1709: TINFO: LTP version: 20230929-307-g5485ddaaf
tst_test.c:1593: TINFO: Timeout per run is 0h 00m 30s
tst_supported_fs_types.c:97: TINFO: Kernel supports ext2
tst_supported_fs_types.c:62: TINFO: mkfs.ext2 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports ext3
tst_supported_fs_types.c:62: TINFO: mkfs.ext3 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports ext4
tst_supported_fs_types.c:62: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports xfs
tst_supported_fs_types.c:62: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:62: TINFO: mkfs.btrfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports bcachefs
tst_supported_fs_types.c:62: TINFO: mkfs.bcachefs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports vfat
tst_supported_fs_types.c:62: TINFO: mkfs.vfat does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports exfat
tst_supported_fs_types.c:62: TINFO: mkfs.exfat does exist
tst_supported_fs_types.c:132: TINFO: FUSE does support ntfs
tst_supported_fs_types.c:62: TINFO: mkfs.ntfs does exist
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:1669: TINFO: === Testing on ext2 ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on ext3 ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on ext4 ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on xfs ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on btrfs ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on bcachefs ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on vfat ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on exfat ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on ntfs ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
tst_test.c:1669: TINFO: === Testing on tmpfs ===
tst_ioctl.c:21: TINFO: FIBMAP ioctl is NOT supported: EINVAL (22)
libswap.c:202: TCONF: Swapfile on tmpfs not implemented
Summary:
passed 0
failed 0
broken 0
skipped 10
warnings 0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-01-29 8:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-28 2:48 [LTP] [PATCH v5 0/8] improvement work on libswap library Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 1/8] libswap: add known swap supported fs check Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 2/8] swapon01: Test on all filesystems Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 3/8] swapon01: Improving test with memory limits and swap reporting Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 4/8] libswap: add function to prealloc contiguous file Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 5/8] libswap: Introduce file contiguity check Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 6/8] libswap: customize swapfile size Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 7/8] swapon/off: enable all_filesystem in swap test Li Wang
2024-01-29 8:03 ` Petr Vorel [this message]
2024-01-29 8:26 ` Li Wang
2024-01-28 2:48 ` [LTP] [PATCH v5 8/8] libswap: Refactor is_swap_supported function to return status Li Wang
2024-01-29 8:03 ` Petr Vorel
2024-01-29 11:36 ` Li Wang
2024-01-29 12:22 ` Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240129080300.GA584389@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox