mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-02 04:22:02 +03:00
libdm: allow deleting regions with dm_stats_delete_group()
Add a flag to dm_stats_delete_group() to allow optional deletion of all regions belonging to the group being removed.
This commit is contained in:
@ -1205,9 +1205,12 @@ int dm_stats_create_group(struct dm_stats *dms, const char *group,
|
||||
const char *alias, uint64_t *group_id);
|
||||
|
||||
/*
|
||||
* Remove the specified group_id.
|
||||
* Remove the specified group_id. If the remove argument is zero the
|
||||
* group will be removed but the regions that it contained will remain.
|
||||
* If remove is non-zero then all regions that belong to the group will
|
||||
* also be removed.
|
||||
*/
|
||||
int dm_stats_delete_group(struct dm_stats *dms, uint64_t group_id);
|
||||
int dm_stats_delete_group(struct dm_stats *dms, uint64_t group_id, int remove);
|
||||
|
||||
/*
|
||||
* Set an alias for this group or region. The alias will be returned
|
||||
|
Reference in New Issue
Block a user