[0/7] nfs-utils fixes
mbox series

Message ID 20200416221252.82102-1-trondmy@kernel.org
Headers show
Series
  • nfs-utils fixes
Related show

Message

trondmy@kernel.org April 16, 2020, 10:12 p.m. UTC
From: Trond Myklebust <trond.myklebust@hammerspace.com>

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(-)

Comments

Steve Dickson May 8, 2020, 2:13 p.m. UTC | #1
On 4/16/20 6:12 PM, trondmy@kernel.org wrote:
> From: Trond Myklebust <trond.myklebust@hammerspace.com>
> 
> 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.