diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2015-02-11 13:57:18 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-02-11 13:57:18 +0100 |
commit | 263f7831df111a431a064d30b639e4769445f841 (patch) | |
tree | aeae4bf9bada6101b8bb9981ad7611fcb533d638 /daemons/cmirrord | |
parent | b88b75f55f54bf07780d389a750bc899f7bed8a9 (diff) | |
download | lvm2-263f7831df111a431a064d30b639e4769445f841.tar.gz |
report: define ba_start, vg_free and seg_start fields as DM_REPORT_FIELD_TYPE_SIZE instead of DM_REPORT_FIELD_TYPE_NUM
This makes a difference when using selection criteria based on
these fields - if those fields are defined as DM_REPORT_FIELD_TYPE_SIZE
(in contrast to DM_REPORT_FIELD_TYPE_NUMBER), units are also
recognize in selection clause.
For example:
$ lvs -o+seg_start vg1/lv2
LV VG Attr LSize Start
lv2 vg1 -wi-a----- 12.00m 0
lv2 vg1 -wi-a----- 12.00m 8.00m
Before this patch:
$ lvs -o+seg_start --select 'seg_start=8m'
Found size unit specifier but numeric value expected for selection field seg_start.
Selection syntax error at 'seg_start=8m'.
Use 'help' for selection to get more help.
With this patch applied:
$lvs -o+seg_start --select 'seg_start=8m'
LV VG Attr LSize Start
lv2 vg1 -wi-a----- 12.00m 8.00m
(the same applies for ba_start and vg_free fields)
Diffstat (limited to 'daemons/cmirrord')
0 files changed, 0 insertions, 0 deletions