Frank Filz has uploaded this change for review.

View Change

Enable Protocols config in EXPORT_DEFAULTS to work as expected

An EXPORT need not have a Protocols config, in which case the value from
EXPORT_DEFAULTS will be used and if that isn't present, then the value
from NFS_CORE_PARAM will be used.

Also fixup some checking of exports.

Now that an export can be exported NFSv4 by default, we make it NOT an
error to not have a pseudo path, instead we fix up the export to not be
NFSv4.

To make everything work, the Protocols in EXPORT needs to default to
nothing. With this, if Protocols is not specified in CLIENT, EXPORT, or
EXPORT_DEFAULTS, it will defer to the next layer up, ultimately to the
NFS_CORE_PARAM Protocols, which defaults to NFSv3, NFSv4.

Change-Id: If932a602b5dacd266ac2813f84936a97f8ba0f7e
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/Protocols/NFS/nfs4_pseudo.c
M src/config_samples/config.txt
M src/doc/man/ganesha-export-config.rst
M src/include/export_mgr.h
M src/support/exports.c
5 files changed, 262 insertions(+), 48 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: If932a602b5dacd266ac2813f84936a97f8ba0f7e
Gerrit-Change-Number: 545233
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-MessageType: newchange