Skip to contentSkip to conversation

text-based mount.nfs: Implement fg/bg processing for NFSv4 mounts

PATCH New Chuck Lever 1 participant 1 message Sep 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 utils/mount/stropts.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
utils/mount/stropts.c +11 -3
index a1ddd99..4caf6dd 100644
@@ -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