From 4d9b08c1599046cf9b401769d0da4a9e65fee7c3 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 21 Oct 2013 13:33:21 -0400 Subject: 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 Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- utils/mount/stropts.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit