[LTP] [PATCH] syscalls/copy_file_range02.c: Compatible with new and old kernels
Cyril Hrubis
chrubis@suse.cz
Fri May 31 14:00:11 CEST 2019
Hi!
> This is a good suggestion. Another point I can come up is, if an LTS Linux
> distribution backports that commit 11cbfb10775a to their old kernel as
> regression fix, then this flag will make no sense.
Well that's life, there is no way how to detect if patch was backported
or not, so either we make the test pass on both EISDIR and EBADFD on
older kernels or we leave it as it is. Neither of the solutions is
perfect.
> So, to strict we maybe need to regards the EISDIR as the only one legal
> errno(copying content to dir) when kernel >= 4.10(includes commit
> 11cbfb10775a).
Yes, exactly.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list