]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs4: Backgrounding mount broken with NFS versions <4
authorWolfram Gloger <bugzilla1@malloc.de>
Mon, 15 Oct 2012 19:31:23 +0000 (15:31 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 15 Oct 2012 19:31:23 +0000 (15:31 -0400)
commit329c63dd7e4e76fc66e8a6058d95c59974ad7db1
treed2a2750d4ff285d3751aaa519c50b8ec5ba44975
parentfa7c7b6e590367a2b1dc2ba2d9f5f4500ff29ae3
mount.nfs4: Backgrounding mount broken with NFS versions <4

When the NFS version isn't specified in the mount options, mount.nfs
attempts V4 first and appends 'vers=4' to the extra_options string in
the mount options.  If the server isn't immediately reachable, this
attempt fails.  However, if the background option is specified and the
server comes up later on, the extra_options are used again for all
further attempts and thus they fail if the server only supports
vers<4.

Fix this by only amending extra_options on a successful vers=4 mount.

This is now Debian bug #690181 and has apparently been around for
ages.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Wolfram Gloger <bugzilla1@malloc.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c