Skip to content

Fixes for READ_PLUS

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2SUNRPC: Keep buf->len in sync with xdr->nwords when expanding holesnet/sunrpc/xdr.c+2 -13 replies
2/2SUNRPC: Check if the buffer has fewer bytes than requestednet/sunrpc/xdr.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fixes for READ_PLUS

From: Anna Schumaker <[email protected]>

These patches fix up hole and data segment decoding for READ_PLUS. It turns out I wasn't handling data getting truncated off the end of the message properly. These patches fix it up, and now xfstests generic/091 and generic/263 pass when run against servers exporting ext4 and btrfs. These tests also pass against servers exporting xfs when the clone operation is disabled, so it seems like there is something going on inside the xfs filesystem causing these tests to still fail.

- Changes since v1:
- Drop patch for allocating scratch page
- Drop patch for disabling READ_PLUS behind a Kconfig option

Thanks,
Anna

Anna Schumaker (2):
SUNRPC: Keep buf->len in sync with xdr->nwords when expanding holes
SUNRPC: Check if the buffer has fewer bytes than requested

 net/sunrpc/xdr.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.29.2