OSDN Git Service

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)
commit3132e49ecef9dab43d858d8e7066662c6a1efb16
tree48a987372d1e75667b487b1bb8770b7a7b01851a
parent2813b626e395f9de1ca0549c1c7d2217c1ce80ea
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