nfsd41: modify the members value of nfsd4_op_flags
Subsystems (2)
PATCH 1/1 nfsd41: modify the members value of nfsd4_op_flags
The members of nfsd4_op_flags, (ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS) equals to ALLOWED_AS_FIRST_OP, maybe that's not what we want.
OP_PUTROOTFH with op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS, can't appears as the first operation with out SEQUENCE ops.
This patch modify the wrong value of ALLOWED_WITHOUT_FH etc which was introduced by f9bb94c4.
--- fs/nfsd/nfs4proc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fs/nfsd/nfs4proc.c +3 -3
@@ -983,9 +983,9 @@ static inline void nfsd4_increment_op_stats(u32 opnum)typedef __be32 (*nfsd4op_func )(struct svc_rqst *,struct nfsd4_compound_state *,void *);enum nfsd4_op_flags { -ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_WITHOUT_FH =1 <<1 ,/* No current filehandle required */ +ALLOWED_ON_ABSENT_FS =1 <<2 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<3 ,/* ops reqired first in compound */ };struct nfsd4_operation {
Signature · 1 line
1.7.4.1
BTW, any particular reason you sent this to Chuck and not Bruce <[email protected]> who's the nfs server maintainer?
Quoted 19 lines · Mi Jinlong
The members of
nfsd4_op_flags, (ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS) equals toALLOWED_AS_FIRST_OP, maybe that's not what we want.
OP_PUTROOTFHwithop_flags=ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS, can't appears as the first operation with out SEQUENCE ops.This patch modify the wrong value of
ALLOWED_WITHOUT_FHetc which was introduced byf9bb94c4.Signed-off-by Mi Jinlong <[email protected]>--- fs/nfsd/nfs4proc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)fs/nfsd/nfs4proc.c +0
-0
fs/nfsd/nfs4proc.c static inline void nfsd4_increment_op_stats(u32 opnum) · line 988
Quoted 9 lines
fs/nfsd/nfs4proc.c +3
-3@@ -983,9 +983,9 @@ static inline void nfsd4_increment_op_stats(u32 opnum)typedef __be32 (*nfsd4op_func )(struct svc_rqst *,struct nfsd4_compound_state *,void *);enum nfsd4_op_flags { -ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_WITHOUT_FH =1 <<1 ,/* No current filehandle required */ +ALLOWED_ON_ABSENT_FS =1 <<2 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<3 ,/* ops reqired first in compound */
Right, just 1 << {0,1,2} would make more sense :)
Benny
Quoted 3 lines
fs/nfsd/nfs4proc.c +0
-0};struct nfsd4_operation {
Quoted 2 lines · Benny Halevy
BTW, any particular reason you sent this to Chuck and not Bruce <[email protected]> who's the nfs server maintainer?
Sorry for my mistake.
Quoted 16 lines · Mi Jinlong
Quoted 14 lines
The members of
nfsd4_op_flags, (ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS) equals toALLOWED_AS_FIRST_OP, maybe that's not what we want.
OP_PUTROOTFHwithop_flags=ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS, can't appears as the first operation with out SEQUENCE ops.This patch modify the wrong value of
ALLOWED_WITHOUT_FHetc which was introduced byf9bb94c4.Signed-off-by Mi Jinlong <[email protected]>--- fs/nfsd/nfs4proc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Quoted 16 lines
Quoted 5 lines
fs/nfsd/nfs4proc.c +0
-0fs/nfsd/nfs4proc.c static inline void nfsd4_increment_op_stats(u32 opnum) · line 988
Quoted 9 lines
fs/nfsd/nfs4proc.c +3
-3@@ -983,9 +983,9 @@ static inline void nfsd4_increment_op_stats(u32 opnum)typedef __be32 (*nfsd4op_func )(struct svc_rqst *,struct nfsd4_compound_state *,void *);enum nfsd4_op_flags { -ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_WITHOUT_FH =1 <<1 ,/* No current filehandle required */ +ALLOWED_ON_ABSENT_FS =1 <<2 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<3 ,/* ops reqired first in compound */ Right, just 1 << {0,1,2} would make more sense :)
Thanks for your advice.
--------------------------------------------
Quoted 41 lines · Mi Jinlong
Quoted 2 lines · Benny Halevy
BTW, any particular reason you sent this to Chuck and not Bruce <[email protected]> who's the nfs server maintainer?
Sorry for my mistake.
Quoted 16 lines · Mi Jinlong
Quoted 14 lines
The members of
nfsd4_op_flags, (ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS) equals toALLOWED_AS_FIRST_OP, maybe that's not what we want.
OP_PUTROOTFHwithop_flags=ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS, can't appears as the first operation with out SEQUENCE ops.This patch modify the wrong value of
ALLOWED_WITHOUT_FHetc which was introduced byf9bb94c4.Signed-off-by Mi Jinlong <[email protected]>--- fs/nfsd/nfs4proc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)Quoted 16 lines
Quoted 5 lines
fs/nfsd/nfs4proc.c +0
-0fs/nfsd/nfs4proc.c static inline void nfsd4_increment_op_stats(u32 opnum) · line 988
Quoted 9 lines
fs/nfsd/nfs4proc.c +3
-3@@ -983,9 +983,9 @@ static inline void nfsd4_increment_op_stats(u32 opnum)typedef __be32 (*nfsd4op_func )(struct svc_rqst *,struct nfsd4_compound_state *,void *);enum nfsd4_op_flags { -ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_WITHOUT_FH =1 <<1 ,/* No current filehandle required */ +ALLOWED_ON_ABSENT_FS =1 <<2 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<3 ,/* ops reqired first in compound */ Right, just 1 << {0,1,2} would make more sense :)
Quoted 1 line
Thanks for your advice.
Thanks for catching this, and apologies for the delay; queueing up for 2.6.39.
--b.
Quoted 44 lines
--------------------------------------------
Quoted 1 line
From
b01bae649293d160af07dde30fde6aa3ac7f8759Mon Sep 17 00:00:00 2001From: Mi Jinlong <[email protected]>
Date: Fri, 18 Feb 2011 09:08:31 +0800
Subject: [PATCH] nfsd41: modify the members value ofnfsd4_op_flagsThe members of
nfsd4_op_flags, (ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS) equals toALLOWED_AS_FIRST_OP, maybe that's not what we want.
OP_PUTROOTFHwithop_flags=ALLOWED_WITHOUT_FH|ALLOWED_ON_ABSENT_FS, can't appears as the first operation with out SEQUENCE ops.This patch modify the wrong value of
ALLOWED_WITHOUT_FHetc which was introduced byf9bb94c4.Signed-off-by Mi Jinlong <[email protected]>--- fs/nfsd/nfs4proc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)fs/nfsd/nfs4proc.c +2
-2@@ -984,8 +984,8 @@ typedef __be32(*nfsd4op_func)(struct svc_rqst *, struct nfsd4_compound_state *, void *);enum nfsd4_op_flags {ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_ON_ABSENT_FS =1 <<1 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<2 ,/* ops reqired first in compound */ };struct nfsd4_operation {Signature · 7 lines
1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html