@@ -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,11 @@ 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 ) ;
356
-
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 ) ;
355
+ /// Reset snapshot tree usage cache. if the lvol is replica, then reset
356
+ /// cache will be based on replica uuid, which is parent uuid for all
357
+ /// snapshots created from the replica. if the lvol is not replica, then
358
+ /// reset cache will be judge based on lvol tree present in the system.
359
+ fn reset_snapshot_tree_usage_cache ( & self , is_replica : bool ) ;
360
360
}
361
361
362
362
/// Traits gives the Snapshots Related Parameters.
0 commit comments