]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: track multiple layout types in fsinfo structure
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Aug 2016 19:58:24 +0000 (15:58 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 19 Sep 2016 17:08:35 +0000 (13:08 -0400)
commit4befc0976673ebfb593aa29d07ca0bf892f68e2a
tree48a987372d1e75667b487b1bb8770b7a7b01851a
parent8104957c102c8d6569bc006909b56881f907108d
pnfs: track multiple layout types in fsinfo structure

Current NFSv4.1/pNFS client assumes that MDS supports only one layout
type. While it's true for most existing servers, nevertheless, this can
be change in the near future.

For now, this patch just plumbs in the ability to track a list of
layouts in the fsinfo structure. The existing behavior of the client
is preserved, by having it just select the first entry in the list.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/client.c
fs/nfs/nfs4xdr.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h
include/linux/nfs_xdr.h