@@ -44,6 +44,12 @@ static void setup(void)
static struct tst_test test = {
.test_all = run,
.setup = setup,
+ .tags = (const struct tst_tag[]) {
+ {"known-fail", "ustat() is known to fail with EINVAL on Btrfs, see"
+ "https://lore.kernel.org/linux-btrfs/e7e867b8-b57a-7eb2-2432-1627bd3a88fb@toxicpanda.com/"
+ },
+ {}
+ }
};
#else
TST_TEST_TCONF("testing ustat requires <sys/ustat.h> or <linux/types.h>");
@@ -63,6 +63,12 @@ static struct tst_test test = {
.test = run,
.setup = setup,
.tcnt = ARRAY_SIZE(tc),
+ .tags = (const struct tst_tag[]) {
+ {"known-fail", "ustat() is known to fail with EINVAL on Btrfs, see"
+ "https://lore.kernel.org/linux-btrfs/e7e867b8-b57a-7eb2-2432-1627bd3a88fb@toxicpanda.com/"
+ },
+ {}
+ }
};
#else
TST_TEST_TCONF("testing ustat requires <sys/ustat.h> or <linux/types.h>");
ustat() has been always broken on Btrfs and it's unlikely to be fixed due ustat() being deprecated (glibc doesn't expose this system call anymore). Suggested-by: Cyril Hrubis <chrubis@suse.cz> Signed-off-by: Petr Vorel <pvorel@suse.cz> --- testcases/kernel/syscalls/ustat/ustat01.c | 6 ++++++ testcases/kernel/syscalls/ustat/ustat02.c | 6 ++++++ 2 files changed, 12 insertions(+)