summaryrefslogtreecommitdiff
path: root/fs/nfsd/pnfs.h
diff options
context:
space:
mode:
authorTom Haynes <thomas.haynes@primarydata.com>2016-06-14 13:41:28 -0700
committerJ. Bruce Fields <bfields@redhat.com>2016-07-13 15:40:48 -0400
commit9b9960a0ca4773e21c4b153ed355583946346b25 (patch)
tree0457348735ef01b8939925b56bb03e38c45195df /fs/nfsd/pnfs.h
parentd7c920d1349ad78b9181d8933404e1a378da6feb (diff)
downloadlinux-rpi-9b9960a0ca4773e21c4b153ed355583946346b25.tar.gz
linux-rpi-9b9960a0ca4773e21c4b153ed355583946346b25.tar.bz2
linux-rpi-9b9960a0ca4773e21c4b153ed355583946346b25.zip
nfsd: Add a super simple flex file server
Have a simple flex file server where the mds (NFSv4.1 or NFSv4.2) is also the ds (NFSv3). I.e., the metadata and the data file are the exact same file. This will allow testing of the flex file client. Simply add the "pnfs" export option to your export in /etc/exports and mount from a client that supports flex files. Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/pnfs.h')
-rw-r--r--fs/nfsd/pnfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h
index e855677fb132..0c2a716e8741 100644
--- a/fs/nfsd/pnfs.h
+++ b/fs/nfsd/pnfs.h
@@ -45,6 +45,9 @@ extern const struct nfsd4_layout_ops bl_layout_ops;
#ifdef CONFIG_NFSD_SCSILAYOUT
extern const struct nfsd4_layout_ops scsi_layout_ops;
#endif
+#ifdef CONFIG_NFSD_FLEXFILELAYOUT
+extern const struct nfsd4_layout_ops ff_layout_ops;
+#endif
__be32 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp,
struct nfsd4_compound_state *cstate, stateid_t *stateid,