Skip to content

Commit

Permalink
NFS NFSD: defining nl4_servers structure needed by both
Browse files Browse the repository at this point in the history
These structures are needed by COPY_NOTIFY on the client and needed
by the nfsd as well

Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Olga Kornievskaia <[email protected]>
  • Loading branch information
olgakorn1 authored and Olga Kornievskaia committed Oct 9, 2019
1 parent 54ecb8f commit f9bdad8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions include/linux/nfs4.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/list.h>
#include <linux/uidgid.h>
#include <uapi/linux/nfs4.h>
#include <linux/sunrpc/msg_prot.h>

enum nfs4_acl_whotype {
NFS4_ACL_WHO_NAMED = 0,
Expand Down Expand Up @@ -674,4 +675,27 @@ struct nfs4_op_map {
} u;
};

struct nfs42_netaddr {
char netid[RPCBIND_MAXNETIDLEN];
char addr[RPCBIND_MAXUADDRLEN + 1];
u32 netid_len;
u32 addr_len;
};

enum netloc_type4 {
NL4_NAME = 1,
NL4_URL = 2,
NL4_NETADDR = 3,
};

struct nl4_server {
enum netloc_type4 nl4_type;
union {
struct { /* NL4_NAME, NL4_URL */
int nl4_str_sz;
char nl4_str[NFS4_OPAQUE_LIMIT + 1];
};
struct nfs42_netaddr nl4_addr; /* NL4_NETADDR */
} u;
};
#endif

0 comments on commit f9bdad8

Please sign in to comment.