-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a persistent UUID in create_bdev. #181
Conversation
Signed-off-by: Gil Bregman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When delivering a PR it's always good to connect it to existing issues or feature requests. In this very case, I think this PR might close:
The PR description and the commit message should contain a line Fixes: #<issue_id>
. This is described here. If the new team members do want to reconsider that approach, feel free to bring this up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🖖
…e persistent. So, whenever the gateway restarts or in case we connect from two gateways the same UUID would be used. So, whenever a bdev is created we generate a UUID in case we don't have one already. This UUID is written to the OMAP file so in case we restore a connection we fetch the UUID value from the OMAP file and use it. Signed-off-by: Gil Bregman <[email protected]>
…meof into uuid-in-create-bdev
@gbregman Could you please add the comment #181 (comment) to the commit log message? |
We want the generated UUID to be persistent. So, whenever the gateway restarts or in case we connect from two gateways the same UUID would be used. So, whenever a bdev is created we generate a UUID in case we don't have one already. This UUID is written to the OMAP file so in case we restore a connection we fetch the UUID value from the OMAP file and use it.