Skip to content

Commit

Permalink
net-fs/nfs-utils: Revbump to fix issue with old kernels and statx
Browse files Browse the repository at this point in the history
Bumped straight to stable as this seems to affect many users.

Thanks-to: Andreas Steinmetz <[email protected]>
Tested-by: Lars Langhans <[email protected]>
Tested-by: Brian Evans <[email protected]>
Bug: https://bugs.gentoo.org/688644
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Lars Wendler <[email protected]>
  • Loading branch information
Lars Wendler committed Oct 30, 2019
1 parent 5f6a456 commit 151c446
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions net-fs/nfs-utils/files/nfs-utils-2.4.1-statx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From c8953944c5d34095d42f604f911022fbe144918c Mon Sep 17 00:00:00 2001
From: Andreas Steinmetz <[email protected]>
Date: Wed, 30 Oct 2019 16:57:00 +0100
Subject: [PATCH] Old kernels don't know statx calls and return EINVAL

On a system with glibc-2.29 and kernel 4.9.128 nfs v3 mount fails as
statx() with mask=STATX_BASIC_STATS returns EINVAL, probably from
glibc, as strace of rpc.mountd shows no system call.

Fixes: https://bugs.gentoo.org/688644
Signed-off-by: Lars Wendler <[email protected]>
---
support/misc/xstat.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/support/misc/xstat.c b/support/misc/xstat.c
index fa047880..6aca6e29 100644
--- a/support/misc/xstat.c
+++ b/support/misc/xstat.c
@@ -47,6 +47,8 @@ statx_do_stat(int fd, const char *pathname, struct stat *statbuf, int flags)
statx_copy(statbuf, &stxbuf);
return 0;
}
+ if (errno == EINVAL)
+ errno = ENOSYS;
if (errno == ENOSYS)
statx_supported = 0;
} else
--
2.24.0.rc1

Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.3.4-no-werror.patch
"${FILESDIR}"/${P}-gssd-Look-in-lib32-for-gss-libs-aswell.patch
"${FILESDIR}"/${P}-Fix-include-order-between-config.h-and-stat.h.patch
"${FILESDIR}"/${PN}-2.4.1-statx.patch #688644
)

pkg_setup() {
Expand Down

0 comments on commit 151c446

Please sign in to comment.