mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
Re: acl trouble after upgrading ubuntu
Subject: [PATCH] nfs: fix acl decoding
Commit 28f566942c
"NFS: use dynamically
computed compound_hdr.replen for xdr_inline_pages offset" accidentally
changed the amount of space to allow for the acl reply, resulting in an
IO error on attempts to get an acl.
Reported-by: Paul Rudin <paul@rudin.co.uk>
Cc: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
f0380f3d16
commit
d327cf7449
1 changed files with 1 additions and 1 deletions
|
@ -2096,7 +2096,7 @@ nfs4_xdr_enc_getacl(struct rpc_rqst *req, __be32 *p,
|
|||
encode_compound_hdr(&xdr, req, &hdr);
|
||||
encode_sequence(&xdr, &args->seq_args, &hdr);
|
||||
encode_putfh(&xdr, args->fh, &hdr);
|
||||
replen = hdr.replen + nfs4_fattr_bitmap_maxsz + 1;
|
||||
replen = hdr.replen + op_decode_hdr_maxsz + nfs4_fattr_bitmap_maxsz + 1;
|
||||
encode_getattr_two(&xdr, FATTR4_WORD0_ACL, 0, &hdr);
|
||||
|
||||
xdr_inline_pages(&req->rq_rcv_buf, replen << 2,
|
||||
|
|
Loading…
Reference in a new issue