Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librbd: Add snapshot namespace to snapshot-name index in ImageCtx
The essence of this huge change is to have two keys for indexing snap ids in ImageCtx. It used to be a map of (snap_name -> snap_id) now it's (snap_namespace, snap_name) -> snap_id. Therefore now snapshots can have the same name if they are in different namespaces. All the remaining changes are a consequece of this change of ImageCtx.snap_ids field. The only exception is: we assume that you can't rename snapshots from GroupSnapshotNamespaces. So rename operation always assumes UserSnapshotNamespace. Signed-off-by: Victor Denisov <denisovenator@gmail.com>
- Loading branch information
1 parent
f903f2f
commit 4a6ca09
Showing
79 changed files
with
1,048 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.