summaryrefslogtreecommitdiffstats
path: root/utils/mount/error.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-07-15 11:59:03 -0400
committerSteve Dickson <steved@redhat.com>2008-07-15 11:59:03 -0400
commit52fe32278aee9f359d4ef6d1fab7be405ca0b193 (patch)
treefc97ba340489a8690f2d850663496b489dbe001d /utils/mount/error.c
parent191d129672dacdc3ae3ac165cd1f2a877529d0ad (diff)
downloadnfs-utils-52fe32278aee9f359d4ef6d1fab7be405ca0b193.tar.gz
nfs-utils-52fe32278aee9f359d4ef6d1fab7be405ca0b193.tar.xz
nfs-utils-52fe32278aee9f359d4ef6d1fab7be405ca0b193.zip
The text-based mount command displays the rather inexplicable "mount:
internal error" whenever it encounters a problem that is entirely unexpected by its designers. Let's beef that error message up to include instructions about reporting the problem, and fix the error code returned by the mount option rewriting logic so that also will no longer report "internal error". An error in there should generally only occur if there was an invalid mount option specified. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/error.c')
-rw-r--r--utils/mount/error.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/mount/error.c b/utils/mount/error.c
index 147e919..5fd5705 100644
--- a/utils/mount/error.c
+++ b/utils/mount/error.c
@@ -231,8 +231,13 @@ void mount_error(const char *spec, const char *mount_point, int error)
rpc_mount_errors((char *)spec, 0, 0);
break;
case EIO:
+ nfs_error(_("%s: mount system call failed"), progname);
+ break;
case EFAULT:
- nfs_error(_("%s: internal error"), progname);
+ nfs_error(_("%s: encountered unexpected error condition."),
+ progname);
+ nfs_error(_("%s: please report the error to" PACKAGE_BUGREPORT),
+ progname);
break;
default:
nfs_error(_("%s: %s"),