1 #ifndef _NFSD_BLOCKLAYOUTXDR_H
2 #define _NFSD_BLOCKLAYOUTXDR_H 1
4 #include <linux/blkdev.h>
10 struct pnfs_block_extent
{
11 struct nfsd4_deviceid vol_id
;
15 enum pnfs_block_extent_state es
;
18 struct pnfs_block_range
{
24 * Random upper cap for the uuid length to avoid unbounded allocation.
25 * Not actually limited by the protocol.
27 #define PNFS_BLOCK_UUID_LEN 128
29 struct pnfs_block_volume
{
30 enum pnfs_block_volume_type type
;
35 u8 sig
[PNFS_BLOCK_UUID_LEN
];
38 enum scsi_code_set code_set
;
39 enum scsi_designator_type designator_type
;
47 struct pnfs_block_deviceaddr
{
49 struct pnfs_block_volume volumes
[];
52 __be32
nfsd4_block_encode_getdeviceinfo(struct xdr_stream
*xdr
,
53 struct nfsd4_getdeviceinfo
*gdp
);
54 __be32
nfsd4_block_encode_layoutget(struct xdr_stream
*xdr
,
55 struct nfsd4_layoutget
*lgp
);
56 int nfsd4_block_decode_layoutupdate(__be32
*p
, u32 len
, struct iomap
**iomapp
,
58 int nfsd4_scsi_decode_layoutupdate(__be32
*p
, u32 len
, struct iomap
**iomapp
,
61 #endif /* _NFSD_BLOCKLAYOUTXDR_H */