[LTP] [PATCH] Fix unlink09 test
Andrea Cervesato
andrea.cervesato@suse.com
Wed Jun 5 12:16:18 CEST 2024
Hi,
On 6/5/24 10:11, Cyril Hrubis wrote:
> 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.
>
That's a valid statement. For now I would like to fix the test first,
then we can fix this other problem with an another patch.
Andrea
More information about the ltp
mailing list