~ahasenack/ubuntu/+source/nfs-utils:upstream-always-use-pipefs-generator

Last commit made on 2023-07-24
Get this branch:
git clone -b upstream-always-use-pipefs-generator https://git.launchpad.net/~ahasenack/ubuntu/+source/nfs-utils
Only Andreas Hasenack can upload to this branch. If you are Andreas Hasenack please log in for upload directions.

Branch merges

Branch information

Name:
upstream-always-use-pipefs-generator
Repository:
lp:~ahasenack/ubuntu/+source/nfs-utils

Recent commits

18de137... by Andreas Hasenack

Use the generated units instead of static ones

Use the generated rpc_pipefs target and mount units instead of the
static ones. The rpc-pipefs generator will take care of generating them.

Signed-off-by: Andreas Hasenack <email address hidden>

a6e0299... by Andreas Hasenack

Always run the rpc_pipefs generator

Shipping both a static unit and a generator to mount rpc_pipefs
increases complexity and can introduce bugs, like seen in [1]. Since
there is a generator, let's use it all the time, even when the
rpc_pipefs mountpoint matches the compiled in default.

1. https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1971935/comments/22

Signed-off-by: Andreas Hasenack <email address hidden>

7b7c01f... by Charles Lever

nfs(5): Document the new "xprtsec=" mount option

More information about RPC-with-TLS and some brief set-up guidance
are to be provided in a separate man page in Section 7.

Signed-off-by: Chuck Lever <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>

46d2ab0... by Ben Hutchings

start-statd: Fix shellcheck warnings

shellcheck currently complains:

In utils/statd/start-statd line 14:
       [ 1`cat /run/rpc.statd.pid` -gt 1 ] &&
          ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
          ^----------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean:
       [ 1$(cat /run/rpc.statd.pid) -gt 1 ] &&

In utils/statd/start-statd line 15:
       kill -0 `cat /run/rpc.statd.pid` > /dev/null 2>&1
               ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
               ^----------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean:
       kill -0 $(cat /run/rpc.statd.pid) > /dev/null 2>&1

Use quotes and $() as recommended.

Signed-off-by: Ben Hutchings <email address hidden>
Signed-off-by: Salvatore Bonaccorso <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>

90a23f7... by Aram Akhavan <email address hidden>

libnfsidmap: try to get the domain directly from hostname if the DNS lookup fails and always show the log message if the domain can't be determined

In nfs4_init_name_mapping(), if no domain is specified in the config file, the hostname will be looked up in DNS, and the domain extracted from that.
If DNS resolution isn't up at this time (i.e. on idmapd startup), the hardcoded domain in IDMAPD_DEFAULT_DOMAIN is used. This will break id mapping
for anyone who doesn't happen to use "localdomain". Previously, the log message indicating this has happened requires -v to be passed, so the
"failure" was silent by default.

Signed-off-by: Aram Akhavan <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>

4f5e667... by Aram Akhavan <email address hidden>

nfs-idmapd.service: add network-online.target to Wants= and After=

nfs-idmapd.service does not have any dependency on the network so there's no
starting point to wait for DNS resolution. nfs-server.service already has this
network dependency and ordering.

Signed-off-by: Aram Akhavan <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>

03f0bb2... by Steve Dickson

reexport.h: Removed an warning by including nfslib.h

reexport.h:13:44: warning: 'struct exportent' declared inside parameter list will not be visible outside of this definition or declaration

Signed-off-by: Steve Dickson <email address hidden>

8125c6f... by Bernd Kuhls <email address hidden>

support/reexport: guard dlfcn.h include with HAVE_DLFCN_H

Signed-off-by: Bernd Kuhls <email address hidden>
Signed-off-by: Giulio Benetti <email address hidden>

Signed-off-by: Steve Dickson <email address hidden>

858c977... by Scott Mayhew <email address hidden>

nfs(5): Document the trunkdiscovery/notrunkdiscovery mount option.

Also, move the documentation for max_connect to the section for
NFSv4-specific options.

Signed-off-by: Scott Mayhew <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>

e5c304f... by Scott Mayhew <email address hidden>

nfs(5): Document the write=lazy|eager|wait mount option.

Signed-off-by: Scott Mayhew <email address hidden>
Signed-off-by: Steve Dickson <email address hidden>