Skip to content

Convert server-side NFS_ACLv3 XDR to use xdrgen

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Documentation: Add the RPC language description of NFS_ACLv3Documentation/sunrpc/xdr/nfs_acl3.x+268 -00 replies
2/13NFSD: Add infrastructure for generating NFS_ACLv3 XDR encoders and decodersDocumentation/sunrpc/xdr/nfs_acl3.x fs/nfsd/Makefile fs/nfsd/nfs_acl3xdr_gen.c +2 more+1069 -30 replies
3/13NFSD: Remove '#include "xdr3.h"' from nfs3acl.cfs/nfsd/nfs3acl.c+33 -10 replies
4/13NFSD: New NFS_ACLv3 status codesDocumentation/sunrpc/xdr/nfs_acl3.x fs/nfsd/nfs3acl.c fs/nfsd/nfs_acl3xdr_gen.c +2 more+90 -380 replies
5/13NFSD: Use xdrgen XDR functions for the NFS-ACL v3 NULL procedurefs/nfsd/nfs3acl.c+16 -100 replies
6/13NFSD: Implement NFS-ACL v3 ACL encoding and decoding with xdrgenDocumentation/sunrpc/xdr/nfs_acl3.x fs/nfsd/nfs3acl.c fs/nfsd/nfs_acl3xdr_gen.c +2 more+400 -270 replies
7/13NFSD: Use xdrgen XDR functions for the NFS-ACL v3 GETACL procedurefs/nfsd/nfs3acl.c+166 -1160 replies
8/13NFSD: Use xdrgen XDR functions for the NFS-ACL v3 SETACL procedurefs/nfsd/nfs3acl.c+76 -980 replies
9/13NFSD: Map every NFS_ACLv3 reply status into aclstat3fs/nfsd/nfs3acl.c+19 -50 replies
10/13NFSD: Remove the hand-coded XDR helpers for the NFS_ACLv3 proceduresfs/nfsd/nfs3xdr.c fs/nfsd/xdr3.h+0 -1710 replies
11/13NFS: Move NFSACL_MAXPAGES into fs/nfs/nfs3_fs.hfs/nfs/nfs3_fs.h fs/nfs/nfs3xdr.c include/linux/nfsacl.h+4 -31 reply
12/13NFSD: Share the attribute conversion helpers with the NFS_ACL procsfs/nfsd/fattr.h fs/nfsd/nfs2acl.c fs/nfsd/nfs3acl.c +2 more+34 -1780 replies
13/13nfs_common: Remove the unused NFS ACL stream codecsfs/nfs_common/nfsacl.c include/linux/nfsacl.h+0 -1310 replies

Reviews trailers per patch

1 of 13 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnna SchumakerJeff Layton
SeriesA-b
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13A-b
12/13
13/13

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

Read the v1 thread

Cover letter [PATCH v1 00/13] Convert server-side NFS_ACLv3 XDR to use xdrgen

Replace NFSD's NFS_ACLv3 XDR encoders and decoders with code that is mechanically generated from the protocol's RPC language description. No RFC defines NFS_ACL. The description in nfs_acl3.x is copied from draft-ietf-nfsv4-nfs-acl.

Chuck Lever (13):
Documentation: Add the RPC language description of NFS_ACLv3
NFSD: Add infrastructure for generating NFS_ACLv3 XDR encoders and
decoders
NFSD: Remove '#include "xdr3.h"' from nfs3acl.c
NFSD: New NFS_ACLv3 status codes
NFSD: Use xdrgen XDR functions for the NFS-ACL v3 NULL procedure
NFSD: Implement NFS-ACL v3 ACL encoding and decoding with xdrgen
NFSD: Use xdrgen XDR functions for the NFS-ACL v3 GETACL procedure
NFSD: Use xdrgen XDR functions for the NFS-ACL v3 SETACL procedure
NFSD: Map every NFS_ACLv3 reply status into aclstat3
NFSD: Remove the hand-coded XDR helpers for the NFS_ACLv3 procedures
NFS: Move NFSACL_MAXPAGES into fs/nfs/nfs3_fs.h
NFSD: Share the attribute conversion helpers with the NFS_ACL procs
nfs_common: Remove the unused NFS ACL stream codecs

 Documentation/sunrpc/xdr/nfs_acl3.x    | 273 ++++++++
 fs/nfs/nfs3_fs.h                       |   3 +
 fs/nfs/nfs3xdr.c                       |   1 +
 fs/nfs_common/nfsacl.c                 | 125 ----
 fs/nfsd/Makefile                       |  13 +-
 fs/nfsd/fattr.h                        |  20 +
 fs/nfsd/nfs2acl.c                      |  99 +--
 fs/nfsd/nfs3acl.c                      | 623 +++++++++++++-----
 fs/nfsd/nfs3xdr.c                      | 166 -----
 fs/nfsd/nfs_acl3xdr_gen.c              | 839 +++++++++++++++++++++++++
 fs/nfsd/nfs_acl3xdr_gen.h              |  36 ++
 fs/nfsd/nfsproc.c                      |   3 +-
 fs/nfsd/xdr3.h                         |   8 +-
 include/linux/nfsacl.h                 |   9 -
 include/linux/sunrpc/xdrgen/nfs_acl3.h | 284 +++++++++
 15 files changed, 1948 insertions(+), 554 deletions(-)
 create mode 100644 Documentation/sunrpc/xdr/nfs_acl3.x
 create mode 100644 fs/nfsd/fattr.h
 create mode 100644 fs/nfsd/nfs_acl3xdr_gen.c
 create mode 100644 fs/nfsd/nfs_acl3xdr_gen.h
 create mode 100644 include/linux/sunrpc/xdrgen/nfs_acl3.h
Signature · 1 line
2.56.0