]> 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)
commit3bb7abd5caeb80cac89ac77db06157e3afe12949
tree48a987372d1e75667b487b1bb8770b7a7b01851a
parent7691a0059235171ece80c3425b3870cd08b6fc8c
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