Jeff Layton has uploaded this change for review.

View Change

rados_grace: return success when adding an entry that already exists

When someone does a "ganesha-rados-grace add" and the entry already
exists, we currently return -EEXIST and the program exits with an
error.

This is problematic for rook, as it wants to run the thing every time
the daemon is restarted, and we want to just ignore it if it already
exists.

Just return success in this case, and don't change anything.

Change-Id: I6481766cc72f5c4e0eef783cf7f3053f3e070806
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
M src/support/rados_grace.c
1 file changed, 0 insertions(+), 1 deletion(-)

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

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

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