@@ -235,7 +235,9 @@ pub trait SnapshotOps {
235
235
fn list_snapshot_by_snapshot_uuid ( & self ) -> Vec < VolumeSnapshotDescriptor > ;
236
236
237
237
/// List All Snapshot.
238
- fn list_all_snapshots ( ) -> Vec < VolumeSnapshotDescriptor > ;
238
+ fn list_all_snapshots (
239
+ parent_lvol : Option < & Lvol > ,
240
+ ) -> Vec < VolumeSnapshotDescriptor > ;
239
241
240
242
/// Create snapshot clone.
241
243
async fn create_clone (
@@ -350,13 +352,17 @@ pub trait SnapshotOps {
350
352
total_ancestor_snap_size : u64 ,
351
353
) -> Option < u64 > ;
352
354
353
- /// When snapshot is destroyed, reset the parent lvol usage cache and its
354
- /// successor snapshot and clone usage cache .
355
- fn reset_snapshot_parent_successor_usage_cache ( & self ) ;
355
+ /// When snapshot is destroyed, if snapshot parent exist, reset cache of
356
+ /// linked snapshot and clone tree based on snapshot parent .
357
+ fn reset_snapshot_tree_usage_cache_with_parent_uuid ( & self ) ;
356
358
357
- /// When snapshot is destroyed, reset cache of successor snapshots and
358
- /// clones based on snapshot parent uuid.
359
- fn reset_successor_lvol_usage_cache ( & self , snapshot_parent_uuid : String ) ;
359
+ /// When snapshot is destroyed, if snapshot parent not exist, reset cache of
360
+ /// linked snapshot and clone tree based on wildcard search through complete
361
+ /// bdev by matching parent uuid got from snapshot attribute.
362
+ fn reset_snapshot_tree_usage_cache_with_wildcard (
363
+ & self ,
364
+ snapshot_parent_uuid : String ,
365
+ ) ;
360
366
}
361
367
362
368
/// Traits gives the Snapshots Related Parameters.
0 commit comments