[LTP] [PATCH v2 2/3] Add fanotify_get_supported_init_flags() helper function
Martin Doucha
mdoucha@suse.cz
Tue Oct 25 10:37:07 CEST 2022
On 24. 10. 22 19:03, Petr Vorel wrote:
>> The kernel UAPI is not very consistent about ENOTSUP vs. EINVAL
>> renameat(2), unlink(2), link(2) and other return EINVAL for unsupported flags
>> fallocate(2), ioctl(2) and others return ENOTSUP for unsupported commands.
>> It's not a clear cut, but ENOTSUP is generally for unsupported fs methods,
>> not for unsupported options.
>
> thanks for info, I didn't know that. Otherwise Martin's note to use ENOTSUP
> would help.
I was not suggesting to change the kernel API, that's not a reasonable
option at this point. I was just pointing out that the API design limits
our options how to write reliable tests.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list