Message ID | 20181025045400.24997-1-yin-jianhong@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [nfs-utils] mount: improve error msg when mount fail wirh EBUSY | expand |
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 >
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:
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(-)