Skip to content

Commit f9bdad8

Browse files
olgakorn1Olga Kornievskaia
authored andcommitted
NFS NFSD: defining nl4_servers structure needed by both
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]>
1 parent 54ecb8f commit f9bdad8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

include/linux/nfs4.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/list.h>
1717
#include <linux/uidgid.h>
1818
#include <uapi/linux/nfs4.h>
19+
#include <linux/sunrpc/msg_prot.h>
1920

2021
enum nfs4_acl_whotype {
2122
NFS4_ACL_WHO_NAMED = 0,
@@ -674,4 +675,27 @@ struct nfs4_op_map {
674675
} u;
675676
};
676677

678+
struct nfs42_netaddr {
679+
char netid[RPCBIND_MAXNETIDLEN];
680+
char addr[RPCBIND_MAXUADDRLEN + 1];
681+
u32 netid_len;
682+
u32 addr_len;
683+
};
684+
685+
enum netloc_type4 {
686+
NL4_NAME = 1,
687+
NL4_URL = 2,
688+
NL4_NETADDR = 3,
689+
};
690+
691+
struct nl4_server {
692+
enum netloc_type4 nl4_type;
693+
union {
694+
struct { /* NL4_NAME, NL4_URL */
695+
int nl4_str_sz;
696+
char nl4_str[NFS4_OPAQUE_LIMIT + 1];
697+
};
698+
struct nfs42_netaddr nl4_addr; /* NL4_NETADDR */
699+
} u;
700+
};
677701
#endif

0 commit comments

Comments
 (0)