Madhu Thorat has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/498597 )
Change subject: Do not let critical error seen for an export affect subsequent exports
......................................................................
Do not let critical error seen for an export affect subsequent exports
Currently if export creation fails we set err_type->export_=true, but
the err_type->export_ may get checked when subsequent exports are
handled and may cause subsequent export block processing to fail.
To avoid this added 2 new variables in "struct config_error_type":
cur_exp_create_err - it is reset before processing an export block. It
gets set if export creation failed while processing the current export
block and is checked only for the current export block being processed.
all_exp_create_err - gets set if export creation failure is seen while
handling any export block.
Change-Id: I058a3d35ad4e83c225838f50996769cded2854c1
Signed-off-by: Madhu Thorat <madhu.punjabi(a)in.ibm.com>
---
M src/config_parsing/config_parsing.c
M src/include/config_parsing.h
M src/support/export_mgr.c
M src/support/exports.c
4 files changed, 51 insertions(+), 11 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/97/498597/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/498597
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I058a3d35ad4e83c225838f50996769cded2854c1
Gerrit-Change-Number: 498597
Gerrit-PatchSet: 1
Gerrit-Owner: Madhu Thorat <madhu.punjabi(a)in.ibm.com>
Gerrit-MessageType: newchange