]> sourceware.org Git - lvm2.git/commit
dmstats: don't output column headings if report fails
authorBryn M. Reeves <bmr@redhat.com>
Wed, 12 Aug 2015 21:02:23 +0000 (22:02 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 12 Aug 2015 21:02:23 +0000 (22:02 +0100)
commit7995eedd3581407b030b0864202068b51dd1ef45
treeabd8e9c2e0472aa1beeb8dfc1412e47d9fb8f75c
parent098528513f8c00d12f4ca5b5e87e4a932a6ef4f6
dmstats: don't output column headings if report fails

If _stats_report fails (e.g. due to an invalid device on the
command line) destroy the _report to prevent stats columns headings
from being displayed.

This also requires a change in main to test the return from
_perform_command_for_all_repeatable_args inside the interval loop
and exit immediately in case of error.
tools/dmsetup.c
This page took 0.036699 seconds and 5 git commands to generate.