mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
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)