Skip to content

Commit

Permalink
rbd: add layering & deep flattenfeatures for groupsnapshot image
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshith R <[email protected]>
  • Loading branch information
Rakshith-R committed Dec 12, 2024
1 parent 17709a8 commit c366113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/rbd/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func (rv *rbdVolume) NewSnapshotByID(
return nil, err
}

// set the features for the clone image.
f := []string{librbd.FeatureNameLayering, librbd.FeatureNameDeepFlatten}
rv.ImageFeatureSet = librbd.FeatureSetFromNames(f)

options, err := rv.constructImageOptions(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit c366113

Please sign in to comment.