Skip to content

Commit

Permalink
Merge pull request #3675 from mulkieran/assert-snap-name
Browse files Browse the repository at this point in the history
Assert snap name
  • Loading branch information
mulkieran authored Aug 21, 2024
2 parents 67dac76 + 5a9e3e1 commit 4a847dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/strat_engine/thinpool/thinpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ impl<B> ThinPool<B> {
origin_uuid: FilesystemUuid,
snapshot_name: &str,
) -> StratisResult<(FilesystemUuid, &mut StratFilesystem)> {
assert!(self.get_filesystem_by_name(snapshot_name).is_none());
let snapshot_fs_uuid = FilesystemUuid::new_v4();
let (snapshot_dm_name, snapshot_dm_uuid) =
format_thin_ids(pool_uuid, ThinRole::Filesystem(snapshot_fs_uuid));
Expand Down

0 comments on commit 4a847dd

Please sign in to comment.