[LTP] [PATCH] Fix unlink09 test
Cyril Hrubis
chrubis@suse.cz
Wed Jun 5 10:11:22 CEST 2024
Hi!
> + fd_immutable = SAFE_CREAT(TEST_EPERM_IMMUTABLE, 0600);
> + TEST(ioctl(fd_immutable, FS_IOC_GETFLAGS, &attr));
> +
> + if (TST_RET == -1 && TST_ERR == ENOTTY) {
> + SAFE_CLOSE(fd_immutable);
> + tst_brk(TCONF | TTERRNO, "Inode attributes not supported");
> + }
I see one problem with this approach. If kernel accidentally removes a
support for immutable files for a certain filesystem this test will be
green. And the filesystems that miss this support are very unlikely to
gain it, e.g. will vfat get support for immutable files? That would be
an argument for explicit skiplist in the form of
tst_test->skip_filesystems.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list