mount.nfs: print an error message when remount attempt fails
Subsystems (2)
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.
Reported-by Eric Doutreleau <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- utils/mount/stropts.c | 1 + 1 file changed, 1 insertion(+)
utils/mount/stropts.c +1 -0
@@ -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
Quoted 5 lines · Jeff Layton
Currently, mount.nfs returns an error code, but doesn't print anything when this occurs.
Reported-by Eric Doutreleau <[email protected]>Signed-off-by Jeff Layton <[email protected]>
committed...
steved.
Quoted 18 lines
--- utils/mount/stropts.c | 1 + 1 file changed, 1 insertion(+)utils/mount/stropts.c +1
-1@@ -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