summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2013-10-21 13:33:21 -0400
committerSteve Dickson <steved@redhat.com>2013-10-21 13:33:21 -0400
commit4d9b08c1599046cf9b401769d0da4a9e65fee7c3 (patch)
tree19378457cdfeaade148c2d1735813fce93863e6b
parent6b53fc9ce38ba6fff2fd5c2f6ed143747067a39d (diff)
downloadnfs-utils-4d9b08c1599046cf9b401769d0da4a9e65fee7c3.tar.gz
nfs-utils-4d9b08c1599046cf9b401769d0da4a9e65fee7c3.tar.xz
nfs-utils-4d9b08c1599046cf9b401769d0da4a9e65fee7c3.zip
mount.nfs: print an error message when remount attempt fails
Currently, mount.nfs returns an error code, but doesn't print anything when this occurs. Reported-by: Eric Doutreleau <edoutreleau@genoscope.cns.fr> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mount/stropts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index 1dc38ef..a642394 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -1004,6 +1004,7 @@ static int nfs_remount(struct nfsmount_info *mi)
{
if (nfs_sys_mount(mi, mi->options))
return EX_SUCCESS;
+ mount_error(mi->spec, mi->node, errno);
return EX_FAIL;
}