text-based mount.nfs: Use new call that handles NFSv2/3 foreground mounting
Subsystems (2)
PATCH 15/19 text-based mount.nfs: Use new call that handles NFSv2/3 foreground mounting
Call foreground mount processing script from the main text-based mount routine. Background NFSv2/3 mounts will fail immediately until the next couple of patches are applied.
Signed-off-by Chuck Lever <[email protected]>
---
utils/mount/stropts.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
utils/mount/stropts.c +4 -8
@@ -377,10 +377,8 @@ static int try_nfsmount(const char *spec, const char *node, flags & ~(MS_USER|MS_USERS), *extra_opts))return 1 ; -if (errno !=EOPNOTSUPP ) { -mount_error (spec, node, errno); +if (errno !=EOPNOTSUPP )return 0 ; - }if (!rewrite_mount_opts (options)) goto parse_err;
@@ -391,8 +389,6 @@ static int try_nfsmount(const char *spec, const char *node,if (!mount (spec, node,"nfs" , flags & ~(MS_USER |MS_USERS ), *extra_opts))return 1 ; - -mount_error (spec, node, errno);return 0 ; parse_err:
@@ -491,9 +487,9 @@ int nfsmount_s(const char *spec, const char *node, int flags,if (!fix_up_mounthost_opt (options)) goto out; -if (!try_nfsmount (spec, node, flags, options, fake, extra_opts)) - goto out; - retval =0 ; +if (po_rightmost (options,"bg" ,"fg" ) ==-1 ) + retval =nfsmount_fg (spec, node, flags, options, + fake, extra_opts); out:po_destroy (options);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs