|
@@ -2141,13 +2141,15 @@ static const struct nfsd4_operation nfsd4_ops[] = {
|
|
|
},
|
|
|
[OP_LOCK] = {
|
|
|
.op_func = nfsd4_lock,
|
|
|
- .op_flags = OP_MODIFIES_SOMETHING,
|
|
|
+ .op_flags = OP_MODIFIES_SOMETHING |
|
|
|
+ OP_NONTRIVIAL_ERROR_ENCODE,
|
|
|
.op_name = "OP_LOCK",
|
|
|
.op_rsize_bop = nfsd4_lock_rsize,
|
|
|
.op_set_currentstateid = nfsd4_set_lockstateid,
|
|
|
},
|
|
|
[OP_LOCKT] = {
|
|
|
.op_func = nfsd4_lockt,
|
|
|
+ .op_flags = OP_NONTRIVIAL_ERROR_ENCODE,
|
|
|
.op_name = "OP_LOCKT",
|
|
|
.op_rsize_bop = nfsd4_lock_rsize,
|
|
|
},
|
|
@@ -2277,14 +2279,16 @@ static const struct nfsd4_operation nfsd4_ops[] = {
|
|
|
[OP_SETATTR] = {
|
|
|
.op_func = nfsd4_setattr,
|
|
|
.op_name = "OP_SETATTR",
|
|
|
- .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME,
|
|
|
+ .op_flags = OP_MODIFIES_SOMETHING | OP_CACHEME
|
|
|
+ | OP_NONTRIVIAL_ERROR_ENCODE,
|
|
|
.op_rsize_bop = nfsd4_setattr_rsize,
|
|
|
.op_get_currentstateid = nfsd4_get_setattrstateid,
|
|
|
},
|
|
|
[OP_SETCLIENTID] = {
|
|
|
.op_func = nfsd4_setclientid,
|
|
|
.op_flags = ALLOWED_WITHOUT_FH | ALLOWED_ON_ABSENT_FS
|
|
|
- | OP_MODIFIES_SOMETHING | OP_CACHEME,
|
|
|
+ | OP_MODIFIES_SOMETHING | OP_CACHEME
|
|
|
+ | OP_NONTRIVIAL_ERROR_ENCODE,
|
|
|
.op_name = "OP_SETCLIENTID",
|
|
|
.op_rsize_bop = nfsd4_setclientid_rsize,
|
|
|
},
|