Skip to contentSkip to conversation

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

PATCH In review Jeff Layton 2 participants 2 messages Oct 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 utils/mount/stropts.c | 1 +
 1 file changed, 1 insertion(+)
utils/mount/stropts.c +1 -0
index 1dc38ef..a642394 100644
@@ -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;
 }
 
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 5 lines · Jeff Layton

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

committed...

steved.

Quoted 18 lines
---
 utils/mount/stropts.c | 1 +
 1 file changed, 1 insertion(+)
utils/mount/stropts.c +1 -1
index 1dc38ef..a642394 100644
@@ -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