}
if (strcmp(fs_type, "nfs4") == 0)
- mnt_err = nfs4mount(spec, mount_point, flags, &extra_opts, fake);
+ mnt_err = nfs4mount(spec, mount_point, flags,
+ &extra_opts, fake, 0);
else
- mnt_err = nfsmount(spec, mount_point, flags, &extra_opts, fake);
+ mnt_err = nfsmount(spec, mount_point, flags,
+ &extra_opts, fake, 0);
if (mnt_err)
exit(EX_FAIL);
#define NFS4_MOUNT_UNSHARED 0x8000 /* 5 */
#define NFS4_MOUNT_FLAGMASK 0xFFFF
-int nfs4mount(const char *, const char *, int, char **, int);
+int nfs4mount(const char *, const char *, int, char **, int, int);
#endif
}
int nfs4mount(const char *spec, const char *node, int flags,
- char **extra_opts, int fake)
+ char **extra_opts, int fake, int running_bg)
{
static struct nfs4_mount_data data;
static char hostdir[1024];
#define AUTH_GSS_SPKMP 390011
#endif
-int nfsmount(const char *, const char *, int , char **, int);
+int nfsmount(const char *, const char *, int , char **, int, int);
int nfsumount(int, char **);
#endif /* _NFS_MOUNT_H */
int
nfsmount(const char *spec, const char *node, int flags,
- char **extra_opts, int fake)
+ char **extra_opts, int fake, int running_bg)
{
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, running_bg = 0;
+ int val;
static int doonce = 0;
clnt_addr_t mnt_server = { &mounthost, };