These structures are needed by COPY_NOTIFY on the client and needed by the nfsd as well
Unified · Split
| @@ -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 | ||
| 20 | enum nfs4_acl_whotype { | 21 | enum 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 | ||
| 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 | }; | ||
| 677 | #endif | 701 | #endif |