2020-04-16 22:16:02

by Trond Myklebust

[permalink] [raw]
Subject: [PATCH 0/7] nfs-utils fixes

From: Trond Myklebust <[email protected]>

This patchset fixes a couple of missed API changes in mountd to
ensure that the [exports]rootdir root jail works correctly. It
fixes up the 'same_path' function, as well as 'uuid_by_path'.
It also improves the error handling, and tries to distinguish
between bona fide path resolution problems, and other transient
issues in order to avoid having knfsd return spurious ESTALE
errors.

Trond Myklebust (7):
mountd: Add a helper nfsd_path_statfs64() for uuid_by_path()
nfsd: Support running nfsd_name_to_handle_at() in the root jail
mountd: Fix up path checking helper same_path()
Fix autoconf probe for 'struct nfs_filehandle'
mountd: Ensure dump_to_cache() sets errno appropriately
mountd: Ignore transient and non-fatal filesystem errors in nfsd_fh()
mountd: Check the stat() return values in match_fsid()

configure.ac | 7 +-
support/include/nfsd_path.h | 9 ++
support/misc/nfsd_path.c | 109 ++++++++++++++++++++++
utils/mountd/cache.c | 174 ++++++++++++++++++++++++------------
4 files changed, 242 insertions(+), 57 deletions(-)

--
2.25.2


2020-05-08 14:16:41

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH 0/7] nfs-utils fixes



On 4/16/20 6:12 PM, [email protected] wrote:
> From: Trond Myklebust <[email protected]>
>
> This patchset fixes a couple of missed API changes in mountd to
> ensure that the [exports]rootdir root jail works correctly. It
> fixes up the 'same_path' function, as well as 'uuid_by_path'.
> It also improves the error handling, and tries to distinguish
> between bona fide path resolution problems, and other transient
> issues in order to avoid having knfsd return spurious ESTALE
> errors.
>
> Trond Myklebust (7):
> mountd: Add a helper nfsd_path_statfs64() for uuid_by_path()
> nfsd: Support running nfsd_name_to_handle_at() in the root jail
> mountd: Fix up path checking helper same_path()
> Fix autoconf probe for 'struct nfs_filehandle'
> mountd: Ensure dump_to_cache() sets errno appropriately
> mountd: Ignore transient and non-fatal filesystem errors in nfsd_fh()
> mountd: Check the stat() return values in match_fsid()
>
> configure.ac | 7 +-
> support/include/nfsd_path.h | 9 ++
> support/misc/nfsd_path.c | 109 ++++++++++++++++++++++
> utils/mountd/cache.c | 174 ++++++++++++++++++++++++------------
> 4 files changed, 242 insertions(+), 57 deletions(-)
>
Committed the series (tag: nfs-utils-2-4-4-rc4)

steved.