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

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/nfs4.h+24−0
@@ -16,6 +16,7 @@ · 15 unmodified lines
16#include <linux/list.h>16#include <linux/list.h>
17#include <linux/uidgid.h>17#include <linux/uidgid.h>
18#include <uapi/linux/nfs4.h>18#include <uapi/linux/nfs4.h>
19#include <linux/sunrpc/msg_prot.h>
19 20
20enum nfs4_acl_whotype {21enum nfs4_acl_whotype {
21 NFS4_ACL_WHO_NAMED = 0,22 NFS4_ACL_WHO_NAMED = 0,
@@ -674,4 +675,27 @@ struct nfs4_op_map { · 652 unmodified lines
674 } u;675 } u;
675};676};
676 677
678struct nfs42_netaddr {
679 char netid[RPCBIND_MAXNETIDLEN];
680 char addr[RPCBIND_MAXUADDRLEN + 1];
681 u32 netid_len;
682 u32 addr_len;
683};
684
685enum netloc_type4 {
686 NL4_NAME = 1,
687 NL4_URL = 2,
688 NL4_NETADDR = 3,
689};
690
691struct 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};
677#endif701#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