1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm/dm-tools
Bryn M. Reeves 925aaf0b87 dmsetup: fix stats report command output
Since the stats handle is neither bound nor listed before the
attempt to call dm_stats_get_nr_regions(), it will always return
zero: this prevents reporting of any dmstats regions on any
device.

Remove the dm_stats_get_nr_regions() check and instead rely on
the correct return status from dm_stats_populate() which only
returns 0 in the case that there are regions to inspect (and
which logs a specific error for all other cases).

Reported-by: Bryan Gurney <bgurney@redhat.com>
2018-11-01 17:00:06 +00:00
..
.gitignore dmfilemapd: Move to libdm/dm-tools 2018-06-14 14:27:19 +01:00
dmfilemapd.c dmfilemapd: Move to libdm/dm-tools 2018-06-14 14:27:19 +01:00
dmsetup.c dmsetup: fix stats report command output 2018-11-01 17:00:06 +00:00
Makefile.in dmfilemapd: Move to libdm/dm-tools 2018-06-14 14:27:19 +01:00
util.h dmsetup: move to libdm/dm-tools/dmsetup 2018-06-14 13:10:17 +01:00