1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/report
Peter Rajnoha bc19a16fc7 report: report -1, not 'unkown' for lv_{snapshot_invalid,merge_failed} with --binary
State:
$ lvs -o lv_name,lv_active_locally,lv_snapshot_invalid,lv_merge_failed vg/lvol0
  LV    ActLocal       SnapInvalid     MergeFailed
  lvol0 active locally         unknown         unknown

Now with using --binary switch.

Before this patch (lv_snapshot_invalid and lv_merge_failed not switched into numeric value
where -1 represents 'unknown' value)
$ lvs -o lv_name,lv_active_locally,lv_snapshot_invalid,lv_merge_failed vg/lvol0 --binary
  LV    ActLocal   SnapInvalid     MergeFailed
  lvol0          1         unknown         unknown

With this patch applied:
$ lvs -o lv_name,lv_active_locally,lv_snapshot_invalid,lv_merge_failed vg/lvol0 --binary
  LV    ActLocal   SnapInvalid     MergeFailed
  lvol0          1              -1              -1
2016-02-18 12:10:00 +01:00
..
columns-devtypes.h doc: change fsf address 2016-01-21 12:11:37 +01:00
columns.h report: add pv_ext_vsn field to display PV header extension version used 2016-02-15 12:44:46 +01:00
properties.c report: add pv_ext_vsn field to display PV header extension version used 2016-02-15 12:44:46 +01:00
properties.h doc: change fsf address 2016-01-21 12:11:37 +01:00
report.c report: report -1, not 'unkown' for lv_{snapshot_invalid,merge_failed} with --binary 2016-02-18 12:10:00 +01:00
report.h doc: change fsf address 2016-01-21 12:11:37 +01:00
values.h report: add pv_in_use field to display whether PV is in use or not 2016-02-15 12:44:46 +01:00