diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-07-01 13:14:41 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-07-05 19:53:16 +0100 |
commit | cda1622fef6c2160f92c88f4eab0200e4864d781 (patch) | |
tree | 2951a40dc8be99274b52a6e80faf9e003e0f8015 /libdm/libdevmapper.h | |
parent | f1f2df7bc0a219afebb86823513516e002a2916f (diff) | |
download | lvm2-cda1622fef6c2160f92c88f4eab0200e4864d781.tar.gz |
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.
Diffstat (limited to 'libdm/libdevmapper.h')
-rw-r--r-- | libdm/libdevmapper.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index a1db12a3e..2fd80612d 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -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 |