2020-03-02 14:09:33

by Petr Vorel

[permalink] [raw]
Subject: [nfs-utils PATCH 1/1] error.c: Put string for EOPNOTSUPP on single line

to help people find it when search for common NFS error:
mount.nfs: requested NFS version or transport protocol is not supported

Signed-off-by: Petr Vorel <[email protected]>
---
utils/mount/error.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/mount/error.c b/utils/mount/error.c
index 986f0660..73295bf0 100644
--- a/utils/mount/error.c
+++ b/utils/mount/error.c
@@ -210,8 +210,7 @@ void mount_error(const char *spec, const char *mount_point, int error)
nfs_error(_("%s: an incorrect mount option was specified"), progname);
break;
case EOPNOTSUPP:
- nfs_error(_("%s: requested NFS version or transport"
- " protocol is not supported"),
+ nfs_error(_("%s: requested NFS version or transport protocol is not supported"),
progname);
break;
case ENOTDIR:
--
2.25.1


2020-03-27 19:17:23

by Steve Dickson

[permalink] [raw]
Subject: Re: [nfs-utils PATCH 1/1] error.c: Put string for EOPNOTSUPP on single line



On 3/2/20 9:08 AM, Petr Vorel wrote:
> to help people find it when search for common NFS error:
> mount.nfs: requested NFS version or transport protocol is not supported
>
> Signed-off-by: Petr Vorel <[email protected]>
Committed... (tag: nfs-utils-2-4-4-rc2)

steved.

> ---
> utils/mount/error.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/utils/mount/error.c b/utils/mount/error.c
> index 986f0660..73295bf0 100644
> --- a/utils/mount/error.c
> +++ b/utils/mount/error.c
> @@ -210,8 +210,7 @@ void mount_error(const char *spec, const char *mount_point, int error)
> nfs_error(_("%s: an incorrect mount option was specified"), progname);
> break;
> case EOPNOTSUPP:
> - nfs_error(_("%s: requested NFS version or transport"
> - " protocol is not supported"),
> + nfs_error(_("%s: requested NFS version or transport protocol is not supported"),
> progname);
> break;
> case ENOTDIR:
>