* [PATCH] mount.nfs: Fix Typo auto negotiating code.
@ 2022-02-19 16:46 Steve Dickson
2022-02-23 16:48 ` Steve Dickson
0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2022-02-19 16:46 UTC (permalink / raw)
To: Linux NFS Mailing list
Commit 14258541 add a check that had a '||'
instead of a '&&' which is the typo.
The intention of commit 14258541 was to show
EBUSY errors but this error is not shown when
the mount point does exists (commit afda50fc).
In the end, EBUSY are now interrupted correctly
in this corner case.
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/mount/stropts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
index 573df6e..dbdd11e 100644
--- a/utils/mount/stropts.c
+++ b/utils/mount/stropts.c
@@ -973,7 +973,7 @@ fall_back:
if ((result = nfs_try_mount_v3v2(mi, FALSE)))
return result;
- if (errno != EBUSY || errno != EACCES)
+ if (errno != EBUSY && errno != EACCES)
errno = olderrno;
return result;
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mount.nfs: Fix Typo auto negotiating code.
2022-02-19 16:46 [PATCH] mount.nfs: Fix Typo auto negotiating code Steve Dickson
@ 2022-02-23 16:48 ` Steve Dickson
0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2022-02-23 16:48 UTC (permalink / raw)
To: Linux NFS Mailing list
On 2/19/22 11:46 AM, Steve Dickson wrote:
> Commit 14258541 add a check that had a '||'
> instead of a '&&' which is the typo.
>
> The intention of commit 14258541 was to show
> EBUSY errors but this error is not shown when
> the mount point does exists (commit afda50fc).
>
> In the end, EBUSY are now interrupted correctly
> in this corner case.
>
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed... (tag: nfs-utils-2-6-2-rc2)
steved.
> ---
> utils/mount/stropts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
> index 573df6e..dbdd11e 100644
> --- a/utils/mount/stropts.c
> +++ b/utils/mount/stropts.c
> @@ -973,7 +973,7 @@ fall_back:
> if ((result = nfs_try_mount_v3v2(mi, FALSE)))
> return result;
>
> - if (errno != EBUSY || errno != EACCES)
> + if (errno != EBUSY && errno != EACCES)
> errno = olderrno;
>
> return result;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-23 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-19 16:46 [PATCH] mount.nfs: Fix Typo auto negotiating code Steve Dickson
2022-02-23 16:48 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox