rbd: add layering & deep flattenfeatures for groupsnapshot image

Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
Rakshith R
2024-12-05 19:47:55 +05:30
committed by mergify[bot]
parent 09d848e017
commit 50b2a0528e
2 changed files with 8 additions and 2 deletions

View File

@ -276,6 +276,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