* [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
2011-10-20 2:10 [PATCH 0/7] Bakeathon server fixes Benny Halevy
@ 2011-10-20 2:13 ` Benny Halevy
2011-10-20 11:53 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Benny Halevy @ 2011-10-20 2:13 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: linux-nfs, Benny Halevy
From: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
---
fs/nfsd/nfs4xdr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 1a419c0..1a5cb7e 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -671,7 +671,7 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *x)
default:
return nfserr_bad_xdr;
}
- w &= !NFS4_SHARE_WANT_MASK;
+ w &= ~NFS4_SHARE_WANT_MASK;
if (!w)
return nfs_ok;
switch (w) {
--
1.7.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
2011-10-20 2:13 ` [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask Benny Halevy
@ 2011-10-20 11:53 ` J. Bruce Fields
0 siblings, 0 replies; 5+ messages in thread
From: J. Bruce Fields @ 2011-10-20 11:53 UTC (permalink / raw)
To: Benny Halevy; +Cc: J. Bruce Fields, linux-nfs, Benny Halevy
Yep, bad mistake on my part--but someone else already caught this, and
it's already committed to my 3.2 branch.--b.
On Wed, Oct 19, 2011 at 07:13:29PM -0700, Benny Halevy wrote:
> From: Benny Halevy <bhalevy@tonian.com>
>
> Signed-off-by: Benny Halevy <bhalevy@tonian.com>
> ---
> fs/nfsd/nfs4xdr.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
> index 1a419c0..1a5cb7e 100644
> --- a/fs/nfsd/nfs4xdr.c
> +++ b/fs/nfsd/nfs4xdr.c
> @@ -671,7 +671,7 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *x)
> default:
> return nfserr_bad_xdr;
> }
> - w &= !NFS4_SHARE_WANT_MASK;
> + w &= ~NFS4_SHARE_WANT_MASK;
> if (!w)
> return nfs_ok;
> switch (w) {
> --
> 1.7.6
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
@ 2011-10-20 12:22 Benny Halevy
2011-10-20 12:26 ` J. Bruce Fields
0 siblings, 1 reply; 5+ messages in thread
From: Benny Halevy @ 2011-10-20 12:22 UTC (permalink / raw)
To: J. Bruce Fields, Benny Halevy; +Cc: J. Bruce Fields, linux-nfs
VGhlIG90aGVyIHBhdGNoIHdhcyBmb3IgdGhlIGRlbnkgYml0cyB0aGlzIGlzIGZvciB0aGUgd2Fu
dCBtYXNrLi4uDQpTaW1pbGFyIGJ1ZywgZGlmZmVyZW50IHBsYWNlIDopDQoNCkJlbm55DQotLS0t
LS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0tDQpGcm9tOiBKLiBCcnVjZSBGaWVsZHMNClRvOiBCZW5u
eSBIYWxldnkNCkNjOiBKLiBCcnVjZSBGaWVsZHMNCkNjOiBsaW51eC1uZnNAdmdlci5rZXJuZWwu
b3JnDQpDYzogQmVubnkgSGFsZXZ5DQpTdWJqZWN0OiBSZTogW1BBVENIIDYvN10gbmZzZDQ6IHR5
cG8gbG9naWNhbCB2cyBiaXR3aXNlIG5lZ2F0ZSBmb3Igd2FudF9tYXNrDQpTZW50OiBPY3QgMjAs
IDIwMTEgMDQ6NTMNCg0KWWVwLCBiYWQgbWlzdGFrZSBvbiBteSBwYXJ0LS1idXQgc29tZW9uZSBl
bHNlIGFscmVhZHkgY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read
* Re: [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
2011-10-20 12:22 [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask Benny Halevy
@ 2011-10-20 12:26 ` J. Bruce Fields
2011-10-20 16:14 ` Boaz Harrosh
0 siblings, 1 reply; 5+ messages in thread
From: J. Bruce Fields @ 2011-10-20 12:26 UTC (permalink / raw)
To: Benny Halevy; +Cc: J. Bruce Fields, Benny Halevy, linux-nfs
On Thu, Oct 20, 2011 at 12:22:41PM +0000, Benny Halevy wrote:
> The other patch was for the deny bits this is for the want mask...
> Similar bug, different place :)
Oog, sorry! OK, applying.
(And in fact I made the same ! for ~ mistake in one other place in the
last week that got caught by regression testing before I posted it. I
need to teach my editor to highlight !'s in blinking red, or
something....)
--b.
>
> Benny
> ------Original Message------
> From: J. Bruce Fields
> To: Benny Halevy
> Cc: J. Bruce Fields
> Cc: linux-nfs@vger.kernel.org
> Cc: Benny Halevy
> Subject: Re: [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
> Sent: Oct 20, 2011 04:53
>
> Yep, bad mistake on my part--but someone else already caught this, and
> it's already committed to my 3.2 branch.--b.
>
> On Wed, Oct 19, 2011 at 07:13:29PM -0700, Benny Halevy wrote:
> > From: Benny Halevy <bhalevy@tonian.com>
> >
> > Signed-off-by: Benny Halevy <bhalevy@tonian.com>
> > ---
> > fs/nfsd/nfs4xdr.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
> > index 1a419c0..1a5cb7e 100644
> > --- a/fs/nfsd/nfs4xdr.c
> > +++ b/fs/nfsd/nfs4xdr.c
> > @@ -671,7 +671,7 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *x)
> > default:
> > return nfserr_bad_xdr;
> > }
> > - w &= !NFS4_SHARE_WANT_MASK;
> > + w &= ~NFS4_SHARE_WANT_MASK;
> > if (!w)
> > return nfs_ok;
> > switch (w) {
> > --
> > 1.7.6
> >
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask
2011-10-20 12:26 ` J. Bruce Fields
@ 2011-10-20 16:14 ` Boaz Harrosh
0 siblings, 0 replies; 5+ messages in thread
From: Boaz Harrosh @ 2011-10-20 16:14 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: Benny Halevy, J. Bruce Fields, Benny Halevy, linux-nfs
On 10/20/2011 05:26 AM, J. Bruce Fields wrote:
> On Thu, Oct 20, 2011 at 12:22:41PM +0000, Benny Halevy wrote:
>> The other patch was for the deny bits this is for the want mask...
>> Similar bug, different place :)
>
> Oog, sorry! OK, applying.
>
> (And in fact I made the same ! for ~ mistake in one other place in the
> last week that got caught by regression testing before I posted it. I
> need to teach my editor to highlight !'s in blinking red, or
> something....)
>
That's easy. Imagine your 8th grade teacher's face on the "!" key. The
habit will go away fast.
> --b.
>
Boaz
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-20 16:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-20 12:22 [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask Benny Halevy
2011-10-20 12:26 ` J. Bruce Fields
2011-10-20 16:14 ` Boaz Harrosh
-- strict thread matches above, loose matches on Subject: below --
2011-10-20 2:10 [PATCH 0/7] Bakeathon server fixes Benny Halevy
2011-10-20 2:13 ` [PATCH 6/7] nfsd4: typo logical vs bitwise negate for want_mask Benny Halevy
2011-10-20 11:53 ` J. Bruce Fields
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).