summaryrefslogtreecommitdiffstats
path: root/utils/mount/error.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/error.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/error.c')
-rw-r--r--utils/mount/error.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/mount/error.c b/utils/mount/error.c
index 1f60b79..3f7458c 100644
--- a/utils/mount/error.c
+++ b/utils/mount/error.c
@@ -76,7 +76,16 @@ static int rpc_strerror(int spos)
return pos;
}
-void mount_errors(char *server, int will_retry, int bg)
+/**
+ * rpc_mount_errors - log an RPC error that occurred during a user-space mount
+ * @server: C string containing name of server we are attempting to mount
+ * @will_retry: one indicates mount will retry at some later point
+ * @bg: one indicates this is a background mount
+ *
+ * Extracts the error code from the user-space RPC library, and reports it
+ * on stderr (fg mount) or in the system log (bg mount).
+ */
+void rpc_mount_errors(char *server, int will_retry, int bg)
{
int pos = 0;
char *tmp;