Madhu Thorat has uploaded this change for review.
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@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 change 498597. To unsubscribe, or for help writing mail filters, visit settings.