From d7c920d1349ad78b9181d8933404e1a378da6feb Mon Sep 17 00:00:00 2001 From: Tom Haynes Date: Tue, 14 Jun 2016 13:41:27 -0700 Subject: nfsd: flex file device id encoding will need the server address Signed-off-by: Tom Haynes Reviewed-by: Christoph Hellwig Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields --- fs/nfsd/pnfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fs/nfsd/pnfs.h') diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h index 7d073b9..e855677 100644 --- a/fs/nfsd/pnfs.h +++ b/fs/nfsd/pnfs.h @@ -21,6 +21,7 @@ struct nfsd4_layout_ops { u32 notify_types; __be32 (*proc_getdeviceinfo)(struct super_block *sb, + struct svc_rqst *rqstp, struct nfs4_client *clp, struct nfsd4_getdeviceinfo *gdevp); __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr, -- cgit v1.1 From 9b9960a0ca4773e21c4b153ed355583946346b25 Mon Sep 17 00:00:00 2001 From: Tom Haynes Date: Tue, 14 Jun 2016 13:41:28 -0700 Subject: 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 Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields --- fs/nfsd/pnfs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/nfsd/pnfs.h') diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h index e855677..0c2a716 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, -- cgit v1.1