OSDN Git Service

exportfs: add methods for block layout exports
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Oct 2013 09:32:35 +0000 (10:32 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 5 Feb 2015 13:35:17 +0000 (14:35 +0100)
commit7fbc1067f06098c6b674e672fbb17e758fcc9402
treeda45863789ec3e9ea5608db9551f918b59f59c62
parent31ef83dc053835fc14741426e20c60dbbba8c13d
exportfs: add methods for block layout exports

Add three methods to allow exporting pnfs block layout volumes:

 - get_uuid: get a filesystem unique signature exposed to clients
 - map_blocks: map and if nessecary allocate blocks for a layout
 - commit_blocks: commit blocks in a layout once the client is done with them

For now we stick the external pnfs block layout interfaces into s_export_op to
avoid mixing them up with the internal interface between the NFS server and
the layout drivers.  Once we've fully internalized the latter interface we
can redecide if these methods should stay in s_export_ops.

Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/exportfs.h