]> code.ossystems Code Review - openembedded-core.git/commit
nfs-utils: Disable statx if using glibc emulation
authorJulius Hemanth Pitti <jpitti@cisco.com>
Fri, 20 Mar 2020 00:26:43 +0000 (17:26 -0700)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 20 Mar 2020 02:01:06 +0000 (10:01 +0800)
commit8cbd6f6f7f10c57b27a1388883a6dc5715610600
tree5120ed027fef4933e17d19be7e3f6a64f57d7f70
parentda2df0251098c46a1476983db379cf33010e3035
nfs-utils: Disable statx if using glibc emulation

nfs-utils 2.4.1, moves from "stat" to "statx
with AT_STATX_DONT_SYNC" in parts of the code.

statx is supported in Linux kernel v4.11 and above.
For all older kernels glibc emulates statx, and it
doesn't support AT_STATX_DONT_SYNC and will return
EINVAL.

When server uses nfs-utils 2.4.1 on kernel v4.10
and older, mount.nfs4 would fail with error
"reason given by server: No such file or directory".

Since Linux v4.4 and v4.9 are LTS, its more likely
that people would use above combination.

This issue has been fixed in nfs-utils 2.4.3 and
above. Backporting fix to 2.4.1.

Signed-off-by: Julius Hemanth Pitti <jpitti@cisco.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Disable-statx-if-using-glibc-emulation.patch [new file with mode: 0644]
meta/recipes-connectivity/nfs-utils/nfs-utils_2.4.1.bb