mirror of https://gitee.com/openkylin/linux.git
nfsd41: mark PUTFH, PUTPUBFH and PUTROOTFH to clear current stateid
Signed-off-by: Tigran Mkrtchyan <kofemann@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
30813e2773
commit
80e01cc1e2
|
@ -1523,21 +1523,24 @@ static struct nfsd4_operation nfsd4_ops[] = {
|
|||
[OP_PUTFH] = {
|
||||
.op_func = (nfsd4op_func)nfsd4_putfh,
|
||||
.op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING,
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING
|
||||
| OP_CLEAR_STATEID,
|
||||
.op_name = "OP_PUTFH",
|
||||
.op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize,
|
||||
},
|
||||
[OP_PUTPUBFH] = {
|
||||
.op_func = (nfsd4op_func)nfsd4_putrootfh,
|
||||
.op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING,
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING
|
||||
| OP_CLEAR_STATEID,
|
||||
.op_name = "OP_PUTPUBFH",
|
||||
.op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize,
|
||||
},
|
||||
[OP_PUTROOTFH] = {
|
||||
.op_func = (nfsd4op_func)nfsd4_putrootfh,
|
||||
.op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING,
|
||||
| OP_IS_PUTFH_LIKE | OP_MODIFIES_SOMETHING
|
||||
| OP_CLEAR_STATEID,
|
||||
.op_name = "OP_PUTROOTFH",
|
||||
.op_rsize_bop = (nfsd4op_rsize)nfsd4_only_status_rsize,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue