Skip to content

RFC Sharing flex file XDR encoding between client and server

Tom Haynes linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfs: Encoding a netaddr is common to client and serverfs/nfs/flexfilelayout/flexfilelayout.c fs/nfs/flexfilelayout/flexfilelayout.h include/linux/nfs4_ff.h+99 -950 replies
2/2nfsd: Encode a netaddr correctlyfs/nfsd/flexfilelayout.c fs/nfsd/flexfilelayoutxdr.c fs/nfsd/flexfilelayoutxdr.h +1 more+21 -580 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] Sharing flex file XDR encoding between client and server

Hi,

This builds on my prior change set for the flex file server.

I'm not too hot on putting this much code in a header, but I can't think of a cleaner way without leaking too much between the client and server.

Any guidance on how this is typically approached?

Thanks,
Tom

Tom Haynes (2):
nfs: Encoding a netaddr is common to client and server
nfsd: Encode a netaddr correctly

 fs/nfs/flexfilelayout/flexfilelayout.c |  93 +-----------------------------
 fs/nfs/flexfilelayout/flexfilelayout.h |   5 +-
 fs/nfsd/flexfilelayout.c               |  26 +--------
 fs/nfsd/flexfilelayoutxdr.c            |  34 +++++------
 fs/nfsd/flexfilelayoutxdr.h            |  15 +----
 include/linux/nfs4_ff.h                | 100 +++++++++++++++++++++++++++++++++
 6 files changed, 120 insertions(+), 153 deletions(-)
 create mode 100644 include/linux/nfs4_ff.h
Signature · 1 line
2.5.5