| /* SPDX-License-Identifier: GPL-2.0 */ |
| * Copyright (c) 2016 Tom Haynes <loghyr@primarydata.com> |
| #ifndef _NFSD_FLEXFILELAYOUTXDR_H |
| #define _NFSD_FLEXFILELAYOUTXDR_H 1 |
| #define FF_FLAGS_NO_LAYOUTCOMMIT 1 |
| #define FF_FLAGS_NO_IO_THRU_MDS 2 |
| #define FF_FLAGS_NO_READ_IO 4 |
| #define FF_ADDR_LEN (INET6_ADDRSTRLEN + 8) |
| char netid[FF_NETID_LEN + 1]; |
| char addr[FF_ADDR_LEN + 1]; |
| struct pnfs_ff_device_addr { |
| struct pnfs_ff_netaddr netaddr; |
| struct nfsd4_deviceid deviceid; |
| __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, |
| struct nfsd4_getdeviceinfo *gdp); |
| __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, |
| struct nfsd4_layoutget *lgp); |
| #endif /* _NFSD_FLEXFILELAYOUTXDR_H */ |