text-based mount.nfs: Implement fg/bg processing for NFSv4 mounts
Subsystems (2)
PATCH 19/19 text-based mount.nfs: Implement fg/bg processing for NFSv4 mounts
We can now finish the fg/bg implementation for NFSv4 mounts by copying the logic from nfsmount_s.
Signed-off-by Chuck Lever <[email protected]>
---
utils/mount/stropts.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-)
utils/mount/stropts.c +11 -3
@@ -772,9 +772,17 @@ int nfs4mount_s(const char *spec, const char *node, int flags,if (!append_clientaddr_option (&saddr, options)) goto out; -if (!try_nfs4mount (spec, node, flags, options, fake, extra_opts)) - goto out; - retval =0 ; +if (po_rightmost (options,"bg" ,"fg" ) >-1 ) { + retval =nfs4mount_fg (spec, node, flags, options, + fake, extra_opts); + }else { +if (!child) + retval =nfs4mount_parent (spec, node, hostname, flags, + options, fake, extra_opts); +else + retval =nfs4mount_child (spec, node, hostname, 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