Skip to contentSkip to conversation

Remove the running_bg parameter

PATCH In review Chuck Lever 1 participant 1 message Jul 16, 2007

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

PATCH 13/17 Remove the running_bg parameter

Clean up: when nfsmount and nfs4mount are called, running_bg is always set to zero. Remove the parameter from the call.

---

 utils/mount/mount.c      |    4 ++--
 utils/mount/nfs4_mount.h |    2 +-
 utils/mount/nfs4mount.c  |    2 +-
 utils/mount/nfs_mount.h  |    2 +-
 utils/mount/nfsmount.c   |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)
utils/mount/mount.c +2 -2
index 3f869ee..fcb1f5e 100644
@@ -467,9 +467,9 @@ int main(int argc, char *argv[])
 		exit(EX_FAIL);
 
 	if (!strcmp(fs_type, "nfs4"))
-		mnt_err = nfs4mount(spec, mount_point, flags, &extra_opts, 0, fake);
+		mnt_err = nfs4mount(spec, mount_point, flags, &extra_opts, fake);
 	else
-		mnt_err = nfsmount(spec, mount_point, flags, &extra_opts, 0, fake);
+		mnt_err = nfsmount(spec, mount_point, flags, &extra_opts, fake);
 
 	if (mnt_err)
 		exit(EX_FAIL);
utils/mount/nfs4_mount.h +1 -1
index b03792e..00581fd 100644
@@ -68,6 +68,6 @@ struct nfs4_mount_data {
 #define NFS4_MOUNT_UNSHARED	0x8000	/* 5 */
 #define NFS4_MOUNT_FLAGMASK	0xFFFF
 
-int nfs4mount(const char *, const char *, int, char **, int, int);
+int nfs4mount(const char *, const char *, int, char **, int);
 
 #endif
utils/mount/nfs4mount.c +1 -1
index 2c85db9..64f85e0 100644
@@ -168,7 +168,7 @@ static int get_my_ipv4addr(char *ip_addr, int len)
 }
 
 int nfs4mount(const char *spec, const char *node, int flags,
-	      char **extra_opts, int running_bg, int fake)
+	      char **extra_opts, int fake)
 {
 	static struct nfs4_mount_data data;
 	static char hostdir[1024];
utils/mount/nfs_mount.h +1 -1
index 8c46ce2..279ff36 100644
@@ -80,6 +80,6 @@ struct nfs_mount_data {
 #define AUTH_GSS_SPKMP		390011
 #endif
 
-int nfsmount(const char *, const char *, int , char **, int, int);
+int nfsmount(const char *, const char *, int , char **, int);
 
 #endif /* _NFS_MOUNT_H */
utils/mount/nfsmount.c +2 -2
index 74b5f93..4807c5b 100644
@@ -487,14 +487,14 @@ out_bad:
 
 int
 nfsmount(const char *spec, const char *node, int flags,
-	 char **extra_opts, int running_bg, int fake)
+	 char **extra_opts, int fake)
 {
 	static char *prev_bg_host;
 	char hostdir[1024];
 	char *hostname, *dirname, *old_opts, *mounthost = NULL;
 	char new_opts[1024], cbuf[1024];
 	static struct nfs_mount_data data;
-	int val;
+	int val, running_bg = 0;
 	static int doonce = 0;
 
 	clnt_addr_t mnt_server = { &mounthost, };

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs