Jeff Layton has uploaded this change for review.

View Change

exports: add generation counter to config_root and helpers to fetch it

Currently, we have no way to track whether the latest config file loaded
still contains a previously-defined export.

To fix this, add a new global counter that tracks a serial number
representing a given configuration. When we get a reconfiguration event,
atomically increment the counter and stuff the resulting value into the
config_root.

Also, add helpers for fetching that value from the config.

Change-Id: Ic1de57a609f858812c2439bce0b6e188accd8cc4
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
M src/config_parsing/analyse.h
M src/config_parsing/conf_lex.l
M src/config_parsing/config_parsing.c
M src/include/config_parsing.h
4 files changed, 30 insertions(+), 0 deletions(-)

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

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

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