From: Wolfram Gloger Date: Mon, 15 Oct 2012 19:31:23 +0000 (-0400) Subject: mount.nfs4: Backgrounding mount broken with NFS versions <4 X-Git-Tag: debian/1%1.2.8-1~11^2^2~89 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=329c63dd7e4e76fc66e8a6058d95c59974ad7db1;hp=329c63dd7e4e76fc66e8a6058d95c59974ad7db1 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 Signed-off-by: Wolfram Gloger Signed-off-by: Steve Dickson ---