Skip to content

XDR cleanups for NFSv4

Trond Myklebust linux-nfs 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest8 patches 0 repliesNew
  2. v48 patches 0 repliesSuperseded
  3. v34 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches0 repliesSuperseded
v14 patches0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8SUNRPC: Add generic helpers for xdr_stream encode/decodeinclude/linux/sunrpc/xdr.h+177 -00 replies
2/8NFSv4: Replace ad-hoc xdr encode/decode helpers with xdr_stream_* genericsfs/nfs/callback_xdr.c fs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/nfs4xdr.c+12 -340 replies
3/8NFSv4: Replace the open coded decode_opaque_inline() with the new genericfs/nfs/nfs4xdr.c+8 -210 replies
4/8NFSv4: Replace callback string decode function with a genericfs/nfs/callback_xdr.c+8 -220 replies
5/8NFSv4: Fix the underestimation of delegation XDR space reservationfs/nfs/nfs4xdr.c+2 -00 replies
6/8NFSv4: Remove bogus "struct nfs_client" argument from decode_ace()fs/nfs/nfs4xdr.c+2 -20 replies
7/8SUNRPC: Add a helper function xdr_stream_decode_string_dup()include/linux/sunrpc/xdr.h net/sunrpc/xdr.c+36 -00 replies
8/8NFSv4: Clean up owner/group attribute decodefs/nfs/nfs4xdr.c+57 -600 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchChuck Lever
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/8] XDR cleanups for NFSv4

Various cleanups and bugfixes for the NFSv4 client XDR code.

v2: Add documentation to the generic helpers
v3: Fix a bug in xdr_stream_encode_opaque (Whoops!)
v4: Add a "maxlen" argument to xdr_stream_decode_opaque_inline() to perform
size sanity checking on all objects coming from the server. Replace the string decoder in the callback XDR
Add cleanups for the owner/group attribute decoding
v5: Use EMSGSIZE to denote encode errors, and destination buffer size issues.
Use EBADMSG to denote errors due to truncated RPC calls.

Trond Myklebust (8):
SUNRPC: Add generic helpers for xdr_stream encode/decode
NFSv4: Replace ad-hoc xdr encode/decode helpers with xdr_stream_*
generics
NFSv4: Replace the open coded decode_opaque_inline() with the new
generic
NFSv4: Replace callback string decode function with a generic
NFSv4: Fix the underestimation of delegation XDR space reservation
NFSv4: Remove bogus "struct nfs_client" argument from decode_ace()
SUNRPC: Add a helper function xdr_stream_decode_string_dup()
NFSv4: Clean up owner/group attribute decode

 fs/nfs/callback_xdr.c                  |  38 ++-----
 fs/nfs/flexfilelayout/flexfilelayout.c |   5 +-
 fs/nfs/nfs4xdr.c                       | 185 ++++++++++++++-------------------
 include/linux/sunrpc/xdr.h             | 179 +++++++++++++++++++++++++++++++
 net/sunrpc/xdr.c                       |  34 ++++++
 5 files changed, 302 insertions(+), 139 deletions(-)
Signature · 1 line
2.9.3