X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Ferror.c;h=3f7458c96ed0574ff3237ba0ac77a077642b3606;hp=1f60b79f2ebadb6a86ea29684240fcff7c57df93;hb=4398901d336340f5bef59991d4cea77b2970f2fe;hpb=46572b00147b2ed5722ba4167073e7c2eb42ad74 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;