mirror of https://gitee.com/openkylin/linux.git
NFSv4: Decode getdevicelist should use nfs4_verifier
The verifier returned by the GETDEVICELIST operation is not a write verifier, but a nfs4_verifier. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
140150dbb1
commit
98d9452448
|
@ -5579,7 +5579,7 @@ static int decode_getdevicelist(struct xdr_stream *xdr,
|
||||||
{
|
{
|
||||||
__be32 *p;
|
__be32 *p;
|
||||||
int status, i;
|
int status, i;
|
||||||
struct nfs_writeverf verftemp;
|
nfs4_verifier verftemp;
|
||||||
|
|
||||||
status = decode_op_hdr(xdr, OP_GETDEVICELIST);
|
status = decode_op_hdr(xdr, OP_GETDEVICELIST);
|
||||||
if (status)
|
if (status)
|
||||||
|
@ -5593,7 +5593,7 @@ static int decode_getdevicelist(struct xdr_stream *xdr,
|
||||||
p += 2;
|
p += 2;
|
||||||
|
|
||||||
/* Read verifier */
|
/* Read verifier */
|
||||||
p = xdr_decode_opaque_fixed(p, verftemp.verifier, NFS4_VERIFIER_SIZE);
|
p = xdr_decode_opaque_fixed(p, verftemp.data, NFS4_VERIFIER_SIZE);
|
||||||
|
|
||||||
res->num_devs = be32_to_cpup(p);
|
res->num_devs = be32_to_cpup(p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue