summaryrefslogtreecommitdiffstats
path: root/utils/mount/nfsmount.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-09-24 11:29:05 -0400
committerNeil Brown <neilb@suse.de>2007-09-25 11:50:16 +1000
commit4398901d336340f5bef59991d4cea77b2970f2fe (patch)
treeabb22a9846337d34aa8577ffea14d36892f9c0c4 /utils/mount/nfsmount.c
parent46572b00147b2ed5722ba4167073e7c2eb42ad74 (diff)
downloadnfs-utils-4398901d336340f5bef59991d4cea77b2970f2fe.tar.gz
nfs-utils-4398901d336340f5bef59991d4cea77b2970f2fe.tar.xz
nfs-utils-4398901d336340f5bef59991d4cea77b2970f2fe.zip
mount.nfs: rename mount_errors()
The function mount_errors() actually reports RPC errors generated by the user-land RPC library. We're about to add a similar function for reporting system call errors via errno, so rename mount_errors() to be more specific about what it does. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/nfsmount.c')
-rw-r--r--utils/mount/nfsmount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c
index 6c34a2b..23dd2f6 100644
--- a/utils/mount/nfsmount.c
+++ b/utils/mount/nfsmount.c
@@ -688,15 +688,15 @@ nfsmount(const char *spec, const char *node, int flags,
if (errno == ETIMEDOUT)
break;
default:
- mount_errors(*nfs_server.hostname, 0, bg);
+ rpc_mount_errors(*nfs_server.hostname, 0, bg);
goto fail;
}
t = time(NULL);
if (t >= timeout) {
- mount_errors(*nfs_server.hostname, 0, bg);
+ rpc_mount_errors(*nfs_server.hostname, 0, bg);
goto fail;
}
- mount_errors(*nfs_server.hostname, 1, bg);
+ rpc_mount_errors(*nfs_server.hostname, 1, bg);
continue;
}
if (!running_bg) {
@@ -707,11 +707,11 @@ nfsmount(const char *spec, const char *node, int flags,
}
t = time(NULL);
if (t >= timeout) {
- mount_errors(*nfs_server.hostname, 0, bg);
+ rpc_mount_errors(*nfs_server.hostname, 0, bg);
goto fail;
}
if (doonce++ < 1)
- mount_errors(*nfs_server.hostname, 1, bg);
+ rpc_mount_errors(*nfs_server.hostname, 1, bg);
}
if (nfs_pmap->pm_vers == 2) {