[nfs-utils] mount: improve error msg when mount fail wirh EBUSY
diff mbox series

Message ID 20181025045400.24997-1-yin-jianhong@163.com
State New
Headers show
Series
  • [nfs-utils] mount: improve error msg when mount fail wirh EBUSY
Related show

Commit Message

Jianhong.Yin Oct. 25, 2018, 4:54 a.m. UTC
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 <yin-jianhong@163.com>
---
 utils/mount/error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson Nov. 29, 2018, 7:49 p.m. UTC | #1
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 <yin-jianhong@163.com>
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
>

Patch
diff mbox series

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: