Return-Path: Received: from mail-pf0-f174.google.com ([209.85.192.174]:36429 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbcE0FJh (ORCPT ); Fri, 27 May 2016 01:09:37 -0400 Received: by mail-pf0-f174.google.com with SMTP id f144so24906304pfa.3 for ; Thu, 26 May 2016 22:09:37 -0700 (PDT) From: Tom Haynes To: "J. Bruce Fields" Cc: Linux NFS Mailing list , Christoph Hellwig Subject: [V4 0/2] Super simple flex file server Date: Thu, 26 May 2016 22:09:05 -0700 Message-Id: <1464325747-118810-1-git-send-email-loghyr@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: Hi Bruce, The following patches make a flex file server in which the mds and the ds are the same machine. And the same inode services both metadata and data. v4: - The addr len in a netaddr is INET6_ADDRSTRLEN + 8 v3: - Extra word help for selecting NFSD_FLEXFILELAYOUT - Do not allow WRITE permissions on an IOMODE_READ segment v2: - Remove patch 2: nfsd: Can leak pnfs_block_extent on error - Consolidate 3rd and 4th patch - Fix the rsize and wsize to come out of the rqstp as per Jeff's review comments - Sort the available layout types such that scsi beats block which beats flex file - Address the points brought up by Christoph in his review These patches are also in my flex_server branch at git://git.linux-nfs.org/projects/loghyr/linux-nfs.git Thanks, Tom Tom Haynes (2): nfsd: flex file device id encoding will need the server address nfsd: Add a super simple flex file server fs/nfsd/Kconfig | 17 ++++++ fs/nfsd/Makefile | 1 + fs/nfsd/blocklayout.c | 2 + fs/nfsd/flexfilelayout.c | 133 ++++++++++++++++++++++++++++++++++++++++++++ fs/nfsd/flexfilelayoutxdr.c | 115 ++++++++++++++++++++++++++++++++++++++ fs/nfsd/flexfilelayoutxdr.h | 49 ++++++++++++++++ fs/nfsd/nfs4layouts.c | 12 +++- fs/nfsd/nfs4proc.c | 2 +- fs/nfsd/pnfs.h | 4 ++ 9 files changed, 333 insertions(+), 2 deletions(-) create mode 100644 fs/nfsd/flexfilelayout.c create mode 100644 fs/nfsd/flexfilelayoutxdr.c create mode 100644 fs/nfsd/flexfilelayoutxdr.h -- 1.8.3.1