diff mbox

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

Message ID 1382363229-6343-1-git-send-email-jlayton@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Oct. 21, 2013, 1:47 p.m. UTC
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>
---
 utils/mount/stropts.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Steve Dickson Oct. 21, 2013, 5:34 p.m. UTC | #1
On 21/10/13 09:47, Jeff Layton wrote:
> 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>
committed... 

steved.
> ---
>  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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 }