]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: allow nfsd to advertise multiple layout types
authorJeff Layton <jlayton@poochiereds.net>
Sun, 10 Jul 2016 19:55:58 +0000 (15:55 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 15 Jul 2016 19:31:32 +0000 (15:31 -0400)
commit0dafadcbda5325789d4bf2eb8a90a5a480298e4b
tree8863285961516c82401234807820d8ad602bdcdd
parenteeea9158805674a9bd4c68febdb8ae120607dfa3
nfsd: allow nfsd to advertise multiple layout types

If the underlying filesystem supports multiple layout types, then there
is little reason not to advertise that fact to clients and let them
choose what type to use.

Turn the ex_layout_type field into a bitfield. For each supported
layout type, we set a bit in that field. When the client requests a
layout, ensure that the bit for that layout type is set. When the
client requests attributes, send back a list of supported types.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c
fs/nfsd/export.h
fs/nfsd/nfs4layouts.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c