From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5 07/16] Add statmount01 test
Date: Tue, 8 Oct 2024 13:54:48 +0200 [thread overview]
Message-ID: <ZwUdiB8tkEpzdUE2@yuki.lan> (raw)
In-Reply-To: <20241008-listmount_statmount-v5-7-66f4e1a9e7db@suse.com>
Hi!
> +static void run(void)
> +{
> + memset(st_mount, 0, sizeof(struct statmount));
> +
> + TST_EXP_PASS(statmount(root_id, 0, st_mount, sizeof(struct statmount), 0));
> +
> + if (TST_RET == -1)
> + return;
I asked for this to be changed to if (!TST_PASS)
> + TST_EXP_EQ_LI(st_mount->size, sizeof(struct statmount));
> + TST_EXP_EQ_LI(st_mount->mask, 0);
> + TST_EXP_EQ_LI(st_mount->sb_dev_major, 0);
> + TST_EXP_EQ_LI(st_mount->sb_dev_minor, 0);
> + TST_EXP_EQ_LI(st_mount->sb_magic, 0);
> + TST_EXP_EQ_LI(st_mount->sb_flags, 0);
> + TST_EXP_EQ_LI(st_mount->fs_type, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_id, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_parent_id, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_id_old, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_parent_id_old, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_attr, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_propagation, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_peer_group, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_master, 0);
> + TST_EXP_EQ_LI(st_mount->propagate_from, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_root, 0);
> + TST_EXP_EQ_LI(st_mount->mnt_point, 0);
> +}
> +
> +static void setup(void)
> +{
> + struct ltp_statx sx;
> +
> + SAFE_STATX(AT_FDCWD, MNTPOINT, 0, STATX_MNT_ID_UNIQUE, &sx);
> +
> + root_id = sx.data.stx_mnt_id;
And here to be changed to mntpoint_id
> +}
> +
> +static struct tst_test test = {
> + .test_all = run,
> + .setup = setup,
> + .min_kver = "6.8",
> + .mount_device = 1,
> + .mntpoint = MNTPOINT,
> + .all_filesystems = 1,
> + .skip_filesystems = (const char *const []) {
> + "fuse",
> + NULL
> + },
And here I suggested that there is no point in running this for all
filesystems.
None of these has been addressed in v5.
> + .bufs = (struct tst_buffers []) {
> + {&st_mount, .size = sizeof(struct statmount)},
> + {}
> + }
> +};
>
> --
> 2.43.0
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-10-08 11:57 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 9:41 [LTP] [PATCH v5 00/16] statmount/listmount testing suites Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 01/16] Add SAFE_STATX macro Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 02/16] Add TST_EXP_EQ_STR macro Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 03/16] Add listmount/statmount syscalls Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 04/16] Add listmount/statmount fallback declarations Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 05/16] Add listmount01 test Andrea Cervesato
2024-10-08 9:41 ` [LTP] [PATCH v5 06/16] Add listmount02 test Andrea Cervesato
2024-10-08 9:42 ` [LTP] [PATCH v5 07/16] Add statmount01 test Andrea Cervesato
2024-10-08 11:54 ` Cyril Hrubis [this message]
2024-10-08 9:42 ` [LTP] [PATCH v5 08/16] Add statmount02 test Andrea Cervesato
2024-10-08 9:42 ` [LTP] [PATCH v5 09/16] Add statmount03 test Andrea Cervesato
2024-10-08 9:42 ` [LTP] [PATCH v5 10/16] Add statmount04 test Andrea Cervesato
2024-10-08 9:42 ` [LTP] [PATCH v5 11/16] Add statmount05 test Andrea Cervesato
2024-10-08 12:03 ` Cyril Hrubis
2024-10-08 13:57 ` Andrea Cervesato via ltp
2024-10-08 14:11 ` Andrea Cervesato via ltp
2024-10-08 9:42 ` [LTP] [PATCH v5 12/16] Add statmount06 test Andrea Cervesato
2024-10-08 9:42 ` [LTP] [PATCH v5 13/16] Add statmount07 test Andrea Cervesato
2024-10-08 12:27 ` Cyril Hrubis
2024-10-08 9:42 ` [LTP] [PATCH v5 14/16] Add statmount08 test Andrea Cervesato
2024-10-08 12:05 ` Cyril Hrubis
2024-10-08 9:42 ` [LTP] [PATCH v5 15/16] Add listmount03 test Andrea Cervesato
2024-10-08 12:08 ` Cyril Hrubis
2024-10-08 9:42 ` [LTP] [PATCH v5 16/16] Add listmount04 test Andrea Cervesato
2024-10-08 15:00 ` Cyril Hrubis
2024-10-08 15:33 ` Andrea Cervesato via ltp
2024-10-08 15:39 ` Cyril Hrubis
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=ZwUdiB8tkEpzdUE2@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--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