Skip to contentSkip to conversation

master - libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd

PATCH Bryn Reeves 1 participant 1 message Mar 30, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ac6089ee8dce83bd61d90344bf67aeef8f319f41
Commit:        ac6089ee8dce83bd61d90344bf67aeef8f319f41
Parent:        fe0922b8a6632456d9f20085f1c67d2ddb5b2d88
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Wed Mar 29 20:02:26 2017 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Thu Mar 30 09:57:58 2017 +0100

libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd

---
 libdm/libdm-stats.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
libdm/libdm-stats.c +2 -1
index 290097f..b553da5 100644
@@ -4777,7 +4777,8 @@ uint64_t *dm_stats_create_regions_from_fd(struct dm_stats *dms, int fd,
 	}
 
 	if (!(regions = _stats_map_file_regions(dms, fd, bounds, precise,
-						-1, &count, &regroup)))
+						DM_STATS_GROUP_NOT_PRESENT,
+						&count, &regroup)))
 		return NULL;
 
 	if (!group)