History

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

Olga Kornievskaia committed 8 years ago

Commit f9bdad81 parent 54ecb8f1 file · +24 −0Browse files

Unified · Split

include/linux/nfs4.h+24−0
@@ -16,6 +16,7 @@ · 15 unmodified lines
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 { · 652 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t