nfsd: Add a super simple flex file server
authorTom Haynes <thomas.haynes@primarydata.com>
Tue, 14 Jun 2016 20:41:28 +0000 (13:41 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 13 Jul 2016 19:40:48 +0000 (15:40 -0400)
commit9b9960a0ca4773e21c4b153ed355583946346b25
tree0457348735ef01b8939925b56bb03e38c45195df
parentd7c920d1349ad78b9181d8933404e1a378da6feb
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>
fs/nfsd/Kconfig
fs/nfsd/Makefile
fs/nfsd/flexfilelayout.c [new file with mode: 0644]
fs/nfsd/flexfilelayoutxdr.c [new file with mode: 0644]
fs/nfsd/flexfilelayoutxdr.h [new file with mode: 0644]
fs/nfsd/nfs4layouts.c
fs/nfsd/pnfs.h