Skip to content

Assorted mount-related nfs-utils patches.

NeilBrown linux-nfs 1 version In review

Get series with b4
b4 am 20160714021310.5874.22953.stgit@noble

Versions newest first

  1. v1 Latest8 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nfs.man: clarify effect of 'retry' option.utils/mount/nfs.man+12 -20 replies
2/8mountd: remove the --exports-file optionutils/mountd/auth.c utils/mountd/mountd.c utils/mountd/mountd.h +1 more+5 -211 reply
3/8mountd: remove 'dev_missing' checksutils/mountd/cache.c+0 -1211 replies
4/8mountd: cause attempts to access unmounted exportpoints to return ESTALEutils/mountd/cache.c+10 -70 replies
5/8mountd: Don't export unmounted exports to NFSv4utils/mountd/cache.c+6 -10 replies
6/8mountd: don't add paths to non-mounted export points to pseudo-rootsupport/include/v4root.h utils/mountd/auth.c utils/mountd/v4root.c+38 -46 replies
7/8mount: don't treat temporary name resolution failure as permanent.utils/mount/stropts.c+31 -231 reply
8/8mount: use a public address for IPv6 callback.utils/mount/network.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Assorted mount-related nfs-utils patches.

This series is an assortment of mount-related things.

1/ resend the manpage update for "retry=" that I sent a while
back, but messed up
2/ remove a meaningless option from mountd.
3/ Fix up support for the "mountpoint" export option in mountd,
particularly making it work sensibly with NFSv4
4/ temporary hostname failure should be treated by mount.nfs
as a temporary condition
5/ Avoid advertising a temporary IPv6 address for NFSv4.0 callback.

That last point needs a kernel fix too, but I'm not sure what is best yet.

If you have IPv6 privacy extensions enabled, then the default address for outgoing connections is a temporary address which becomes "deprecated" after a period of time, when another address will become available for use. A while later the deprecated address becomes invalid, and will stop working.
So if a connection is held open for longer than the "valid lifetime" (valid_lft in "ip -6 addr" output) it will stop working, which isn't what users will expect.

We could possibly close and re-open the connection after the address becomes deprecated. Or we could insist on a 'public' address when establishing the connection. Thoughts?

When setting the call-back address for NFSv4.0, using a public address is the only real option, so that is what this patch does.

Thanks,
NeilBrown

---

NeilBrown (8):
nfs.man: clarify effect of 'retry' option.
mountd: remove the --exports-file option
mountd: remove 'dev_missing' checks
mountd: cause attempts to access unmounted exportpoints to return ESTALE
mountd: Don't export unmounted exports to NFSv4
mountd: don't add paths to non-mounted export points to pseudo-root
mount: don't treat temporary name resolution failure as permanent.
mount: use a public address for IPv6 callback.

 support/include/v4root.h |    2 +-
 utils/mount/network.c    |    5 ++++
 utils/mount/nfs.man      |   14 ++++++++++--
 utils/mount/stropts.c    |   54 ++++++++++++++++++++++++++--------------------
 utils/mountd/auth.c      |   34 ++++++++++++++++++++++++-----
 utils/mountd/cache.c     |   36 ++++++++++++++-----------------
 utils/mountd/mountd.c    |   11 +++------
 utils/mountd/mountd.h    |    2 +-
 utils/mountd/mountd.man  |    8 -------
 utils/mountd/v4root.c    |   11 +++++++++
 10 files changed, 107 insertions(+), 70 deletions(-)

--
Signature