X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfs4mount.c;h=0a32c3c4f644444e135ebb2405b6130077960fc3;hp=8f95ab735966ebe10b2d70cdde6af45a07ffefa4;hb=00511ee5c97793fa8bf3f463ac07cbb4029ca149;hpb=2f1ade1adf8074efbd661d41758d8844ab5f522e diff --git a/utils/mount/nfs4mount.c b/utils/mount/nfs4mount.c index 8f95ab7..0a32c3c 100644 --- a/utils/mount/nfs4mount.c +++ b/utils/mount/nfs4mount.c @@ -166,7 +166,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 fake) + char **extra_opts, int fake, int running_bg) { static struct nfs4_mount_data data; static char hostdir[1024]; @@ -428,15 +428,15 @@ int nfs4mount(const char *spec, const char *node, int flags, if (errno == ETIMEDOUT) break; default: - mount_errors(hostname, 0, bg); + rpc_mount_errors(hostname, 0, bg); goto fail; } t = time(NULL); if (t >= timeout) { - mount_errors(hostname, 0, bg); + rpc_mount_errors(hostname, 0, bg); goto fail; } - mount_errors(hostname, 1, bg); + rpc_mount_errors(hostname, 1, bg); continue; } @@ -448,7 +448,7 @@ int nfs4mount(const char *spec, const char *node, int flags, } } - return 0; + return EX_SUCCESS; fail: return retval;