[PATCH] mount.nfs: print an error message when remount attempt fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently, mount.nfs returns an error code, but doesn't print anything
when this occurs.

Reported-by: Eric Doutreleau <edoutreleau@xxxxxxxxxxxxxxxx>
Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
 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;
 }
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux