summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_pnfs.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-02-16 11:49:23 +1100
committerDave Chinner <david@fromorbit.com>2015-02-16 11:49:23 +1100
commit527851124d10f9c50b1c578e0a56fcd49922422d (patch)
treef16dd8e452ae24ce6802cfb8c6baa53588de91ab /fs/xfs/xfs_pnfs.h
parentbad962662dbc60e76ec1baae34af56b1ba2dfa5f (diff)
xfs: implement pNFS export operations
Add operations to export pNFS block layouts from an XFS filesystem. See the previous commit adding the operations for an explanation of them. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_pnfs.h')
-rw-r--r--fs/xfs/xfs_pnfs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/xfs/xfs_pnfs.h b/fs/xfs/xfs_pnfs.h
new file mode 100644
index 000000000000..0d91255a89ae
--- /dev/null
+++ b/fs/xfs/xfs_pnfs.h
@@ -0,0 +1,11 @@
+#ifndef _XFS_PNFS_H
+#define _XFS_PNFS_H 1
+
+#ifdef CONFIG_NFSD_PNFS
+int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
+int xfs_fs_map_blocks(struct inode *inode, loff_t offset, u64 length,
+ struct iomap *iomap, bool write, u32 *device_generation);
+int xfs_fs_commit_blocks(struct inode *inode, struct iomap *maps, int nr_maps,
+ struct iattr *iattr);
+#endif /* CONFIG_NFSD_PNFS */
+#endif /* _XFS_PNFS_H */