]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - fs/nfsd/flexfilelayoutxdr.h
2 * Copyright (c) 2016 Tom Haynes <loghyr@primarydata.com>
4 #ifndef _NFSD_FLEXFILELAYOUTXDR_H
5 #define _NFSD_FLEXFILELAYOUTXDR_H 1
7 #include <linux/inet.h>
10 #define FF_FLAGS_NO_LAYOUTCOMMIT 1
11 #define FF_FLAGS_NO_IO_THRU_MDS 2
12 #define FF_FLAGS_NO_READ_IO 4
16 #define FF_NETID_LEN (4)
17 #define FF_ADDR_LEN (INET6_ADDRSTRLEN + 8)
18 struct pnfs_ff_netaddr
{
19 char netid
[FF_NETID_LEN
+ 1];
20 char addr
[FF_ADDR_LEN
+ 1];
25 struct pnfs_ff_device_addr
{
26 struct pnfs_ff_netaddr netaddr
;
34 struct pnfs_ff_layout
{
36 u32 stats_collect_hint
;
39 struct nfsd4_deviceid deviceid
;
44 __be32
nfsd4_ff_encode_getdeviceinfo(struct xdr_stream
*xdr
,
45 struct nfsd4_getdeviceinfo
*gdp
);
46 __be32
nfsd4_ff_encode_layoutget(struct xdr_stream
*xdr
,
47 struct nfsd4_layoutget
*lgp
);
49 #endif /* _NFSD_FLEXFILELAYOUTXDR_H */