Frank Filz has uploaded this change for review.

View Change

Cleanup export refcounting for exports that are only config objects

Until an export is committed during config, it isn't fully instantiated,
and in fact, on an update, a 2nd copy of the export is manifested that
is only used during the config process. Make sure that on releasing
an export that never was committed that we skip some of the cleanup.

This will also assure that the reference counting is correct.

Change-Id: Ica339fddabe702c344cb69ce472b91421447ffed
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/include/export_mgr.h
M src/include/nfs_exports.h
M src/support/export_mgr.c
M src/support/exports.c
4 files changed, 83 insertions(+), 33 deletions(-)

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

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

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