Jeff Layton has uploaded this change for review.

View Change

FSAL: make fsal_fs_locations_t.server an array of hosts

Add a flexarray at the end of fsal_fs_locations_t to hold an array of
utf8string structs. For now, we assume that the rootpath on all of them
is the same.

Change nfs4_fs_locations_new to take a server count and allocate a
structure that's the right length for the array. The callers then
populate the array with the appropriate info, which is then passed
directly to the encoder.

Change-Id: Iffdc6e90aacbce58eefe066d06641af07f370553
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
M src/FSAL/FSAL_GPFS/handle.c
M src/FSAL/FSAL_VFS/handle.c
M src/FSAL/FSAL_VFS/subfsal_helpers.c
M src/Protocols/NFS/nfs_proto_tools.c
M src/include/fsal_types.h
M src/include/nfs4_fs_locations.h
M src/support/nfs4_fs_locations.c
7 files changed, 43 insertions(+), 36 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/02/422302/1

To view, visit change 422302. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iffdc6e90aacbce58eefe066d06641af07f370553
Gerrit-Change-Number: 422302
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlayton@redhat.com>