#ifndef _NFSD_BLOCKLAYOUTXDR_H
#define _NFSD_BLOCKLAYOUTXDR_H 1

#include <linux/blkdev.h>
#include "xdr4.h"

struct iomap;
struct xdr_stream;

struct pnfs_block_extent {
	struct nfsd4_deviceid		vol_id;
	u64				foff;
	u64				len;
	u64				soff;
	enum pnfs_block_extent_state	es;
};

struct pnfs_block_range {
	u64				foff;
	u64				len;
};

/*
 * Random upper cap for the uuid length to avoid unbounded allocation.
 * Not actually limited by the protocol.
 */
#define PNFS_BLOCK_UUID_LEN	128

struct pnfs_block_volume {
	enum pnfs_block_volume_type	type;
	union {
		struct {
			u64		offset;
			u32		sig_len;
			u8		sig[PNFS_BLOCK_UUID_LEN];
		} simple;
		struct {
			enum scsi_code_set		code_set;
			enum scsi_designator_type	designator_type;
			int				designator_len;
			u8				designator[256];
			u64				pr_key;
		} scsi;
	};
};

struct pnfs_block_deviceaddr {
	u32				nr_volumes;
	struct pnfs_block_volume	volumes[];
};

__be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
		struct nfsd4_getdeviceinfo *gdp);
__be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr,
		struct nfsd4_layoutget *lgp);
int nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
		u32 block_size);
int nfsd4_scsi_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
		u32 block_size);

#endif /* _NFSD_BLOCKLAYOUTXDR_H */
mit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/uapi/Kbuild?showmsg=1'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/uapi/Kbuild?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/Kbuild?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/Kbuild?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/uapi/Kbuild'>
<input type='hidden' name='id' value='2b5078937355c0d662ecef54b7d4d04f48da4fa9'/><input type='hidden' name='showmsg' value='1'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9&amp;showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9&amp;showmsg=1'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/uapi?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9&amp;showmsg=1'>uapi</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/uapi/Kbuild?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9&amp;showmsg=1'>Kbuild</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/uapi/Kbuild?id=2b5078937355c0d662ecef54b7d4d04f48da4fa9'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
it-panel'><b>diff options</b><form method='get'><input type='hidden' name='id' value='57480b98af696795ab0daff0a6ed572172060a0f'/><input type='hidden' name='id2' value='a0615a16f7d0ceb5804d295203c302d496d8ee91'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=57480b98af696795ab0daff0a6ed572172060a0f&amp;id2=a0615a16f7d0ceb5804d295203c302d496d8ee91'>Diffstat</a> (limited to 'net/strparser/Kconfig')</div><table summary='diffstat' class='diffstat'>