* [PATCH 1/1] utils: Fix left debug info
@ 2022-01-22 18:02 Petr Vorel
2022-01-22 20:05 ` Steve Dickson
0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2022-01-22 18:02 UTC (permalink / raw)
To: linux-nfs; +Cc: Petr Vorel, Steve Dickson, Yongcheng Yang
Patch for 497ffdf8 ('manpage: remove the no longer supported value
"vers2"') [1] didn't contain printf in exportfs.c (looks like debugging
info) and errno handling in stropts.c (maybe work on other patch) which
were applied. Thus removing it.
[1] https://lore.kernel.org/linux-nfs/20220117031356.13361-1-yoyang@redhat.com/raw
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
utils/exportfs/exportfs.c | 2 --
utils/mount/stropts.c | 3 +--
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index c247425b..6ba615d1 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -307,14 +307,12 @@ static int exportfs_generic(char *arg, char *options, int verbose)
{
char *path;
-printf("exportfs_generic: arg '%s'\n", arg);
if ((path = strchr(arg, ':')) != NULL)
*path++ = '\0';
if (!path || *path != '/')
return 1;
-printf("exportfs_generic: path '%s'\n", path);
exportfs_parsed(arg, path, options, verbose);
return 0;
}
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index 3ca69862..3c4e218a 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -973,8 +973,7 @@ fall_back:
if ((result = nfs_try_mount_v3v2(mi, FALSE)))
return result;
- if (errno != EBUSY)
- errno = olderrno;
+ errno = olderrno;
return result;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] utils: Fix left debug info
2022-01-22 18:02 [PATCH 1/1] utils: Fix left debug info Petr Vorel
@ 2022-01-22 20:05 ` Steve Dickson
2022-01-24 5:35 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: Steve Dickson @ 2022-01-22 20:05 UTC (permalink / raw)
To: Petr Vorel, linux-nfs; +Cc: Yongcheng Yang
Hey!
This patch is pretty messed up.
On 1/22/22 13:02, Petr Vorel wrote:
> Patch for 497ffdf8 ('manpage: remove the no longer supported value
> "vers2"') [1] didn't contain printf in exportfs.c (looks like debugging
> info) and errno handling in stropts.c (maybe work on other patch) which
> were applied. Thus removing it.
Someone pointed it to me that with 2 v3 auto-negotiation
on the same mount the is error EPROTONOSUPPORT
instead of EBUSY so this test
if (errno != EBUSY)
errno = olderrno;
seemed to work but unfortunately I can
not find the patch/bz or thread we were
communicating in... So I am going to
remove the test until I get (or find) the
official patch
Committed!
thanks,
steved.
>
> [1] https://lore.kernel.org/linux-nfs/20220117031356.13361-1-yoyang@redhat.com/raw
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> utils/exportfs/exportfs.c | 2 --
> utils/mount/stropts.c | 3 +--
> 2 files changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
> index c247425b..6ba615d1 100644
> --- a/utils/exportfs/exportfs.c
> +++ b/utils/exportfs/exportfs.c
> @@ -307,14 +307,12 @@ static int exportfs_generic(char *arg, char *options, int verbose)
> {
> char *path;
>
> -printf("exportfs_generic: arg '%s'\n", arg);
> if ((path = strchr(arg, ':')) != NULL)
> *path++ = '\0';
>
> if (!path || *path != '/')
> return 1;
>
> -printf("exportfs_generic: path '%s'\n", path);
> exportfs_parsed(arg, path, options, verbose);
> return 0;
> }
> diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
> index 3ca69862..3c4e218a 100644
> --- a/utils/mount/stropts.c
> +++ b/utils/mount/stropts.c
> @@ -973,8 +973,7 @@ fall_back:
> if ((result = nfs_try_mount_v3v2(mi, FALSE)))
> return result;
>
> - if (errno != EBUSY)
> - errno = olderrno;
> + errno = olderrno;
> return result;
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] utils: Fix left debug info
2022-01-22 20:05 ` Steve Dickson
@ 2022-01-24 5:35 ` Petr Vorel
0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2022-01-24 5:35 UTC (permalink / raw)
To: Steve Dickson; +Cc: linux-nfs, Yongcheng Yang
> Hey!
> This patch is pretty messed up.
> On 1/22/22 13:02, Petr Vorel wrote:
> > Patch for 497ffdf8 ('manpage: remove the no longer supported value
> > "vers2"') [1] didn't contain printf in exportfs.c (looks like debugging
> > info) and errno handling in stropts.c (maybe work on other patch) which
> > were applied. Thus removing it.
> Someone pointed it to me that with 2 v3 auto-negotiation
> on the same mount the is error EPROTONOSUPPORT
> instead of EBUSY so this test
> if (errno != EBUSY)
> errno = olderrno;
> seemed to work but unfortunately I can
> not find the patch/bz or thread we were
> communicating in... So I am going to
> remove the test until I get (or find) the
> official patch
Hi Steve,
thanks a lot for explanation.
Also not sure if it needs to be removed, but there are at least few places which
mention NFS version 2.
$ git grep -i nfs.version.2
utils/mountd/mountd.man:an NFS side protocol used by NFS version 2 [RFC1094] and NFS version 3 [RFC1813].
utils/mountd/mountd.man:can support both NFS version 2, 3 and 4. If the
utils/mountd/mountd.man:can support both NFS version 2 and the newer version 3.
utils/nfsstat/nfsstat.c: -2 Show NFS version 2 statistics\n\
utils/statd/sm-notify.man:For NFS version 2 and version 3, the
utils/statd/statd.man:For NFS version 2 [RFC1094] and NFS version 3 [RFC1813], the
Kind regards,
Petr
> Committed!
> thanks,
> steved.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-24 5:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-22 18:02 [PATCH 1/1] utils: Fix left debug info Petr Vorel
2022-01-22 20:05 ` Steve Dickson
2022-01-24 5:35 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).