]> git.decadent.org.uk Git - nfs-utils.git/commit
text-based mount.nfs: Add text-based error reporting function
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 15:29:10 +0000 (11:29 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 25 Sep 2007 01:50:16 +0000 (11:50 +1000)
commit6e54f6179cb9e9d5706901a06744b8f4667c24e7
treec767c19e83deaec302997ec7eb336013c4ec41d9
parent4398901d336340f5bef59991d4cea77b2970f2fe
text-based mount.nfs: Add text-based error reporting function

The mount_errors() function prints an error based on what just happened in
the user-space RPC library.  This is meaningless for text-based mounts,
since they don't use the RPC library for most things.

Add a new error printing function that the text-based logic can use to
report an error.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/error.c
utils/mount/error.h