diff options
author | Christoph Hellwig <hch@lst.de> | 2015-02-16 01:49:23 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-16 01:49:23 +0100 |
commit | 527851124d10f9c50b1c578e0a56fcd49922422d (patch) | |
tree | f16dd8e452ae24ce6802cfb8c6baa53588de91ab /fs/xfs/xfs_export.c | |
parent | Merge branch 'xfs-misc-fixes-for-3.20-4' into for-next (diff) | |
download | linux-527851124d10f9c50b1c578e0a56fcd49922422d.tar.xz linux-527851124d10f9c50b1c578e0a56fcd49922422d.zip |
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_export.c')
-rw-r--r-- | fs/xfs/xfs_export.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c index 5eb4a14e0a0f..b97359ba2648 100644 --- a/fs/xfs/xfs_export.c +++ b/fs/xfs/xfs_export.c @@ -30,6 +30,7 @@ #include "xfs_trace.h" #include "xfs_icache.h" #include "xfs_log.h" +#include "xfs_pnfs.h" /* * Note that we only accept fileids which are long enough rather than allow @@ -245,4 +246,9 @@ const struct export_operations xfs_export_operations = { .fh_to_parent = xfs_fs_fh_to_parent, .get_parent = xfs_fs_get_parent, .commit_metadata = xfs_fs_nfs_commit_metadata, +#ifdef CONFIG_NFSD_PNFS + .get_uuid = xfs_fs_get_uuid, + .map_blocks = xfs_fs_map_blocks, + .commit_blocks = xfs_fs_commit_blocks, +#endif }; |