2018-10-25 04:54:13

by Jianhong.Yin

[permalink] [raw]
Subject: [PATCH] [nfs-utils] mount: improve error msg when mount fail wirh EBUSY

EBUSY can happen when mounting a filesystem that
is already mounted or when the context= are
different when using the -o sharecache

so update the error message from to:
- %mountpoint% is busy or already mounted
+ %mountpoint% is busy or already mounted or sharecache fail

Signed-off-by: Jianhong Yin <[email protected]>
---
utils/mount/error.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/mount/error.c b/utils/mount/error.c
index c9797fc..dfe5c7d 100644
--- a/utils/mount/error.c
+++ b/utils/mount/error.c
@@ -223,7 +223,7 @@ void mount_error(const char *spec, const char *mount_point, int error)
progname, mount_point);
break;
case EBUSY:
- nfs_error(_("%s: %s is busy or already mounted"),
+ nfs_error(_("%s: %s is busy or already mounted or sharecache fail"),
progname, mount_point);
break;
case ENOENT:
--
2.17.2



2018-11-29 19:49:37

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH] [nfs-utils] mount: improve error msg when mount fail wirh EBUSY



On 10/25/18 12:54 AM, Jianhong.Yin wrote:
> EBUSY can happen when mounting a filesystem that
> is already mounted or when the context= are
> different when using the -o sharecache
>
> so update the error message from to:
> - %mountpoint% is busy or already mounted
> + %mountpoint% is busy or already mounted or sharecache fail
>
> Signed-off-by: Jianhong Yin <[email protected]>
Committed....

steved.

> ---
> utils/mount/error.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/mount/error.c b/utils/mount/error.c
> index c9797fc..dfe5c7d 100644
> --- a/utils/mount/error.c
> +++ b/utils/mount/error.c
> @@ -223,7 +223,7 @@ void mount_error(const char *spec, const char *mount_point, int error)
> progname, mount_point);
> break;
> case EBUSY:
> - nfs_error(_("%s: %s is busy or already mounted"),
> + nfs_error(_("%s: %s is busy or already mounted or sharecache fail"),
> progname, mount_point);
> break;
> case ENOENT:
> -- 2.17.2
>