bug in lvm2app get_property value
For some reason the following functions return different numbers for single segment volumes:
value = lvm_lv_get_property(lvm_lv, "lv_size");
value = lvm_lvseg_get_property(lvm_lvseg, "seg_size");The first function seems to be correct while the second one returns the same value divided by 512?
Thank you.
Quoted 9 lines · ben
For some reason the following functions return different numbers for single segment volumes:
value = lvm_lv_get_property(lvm_lv, "lv_size"); value = lvm_lvseg_get_property(lvm_lvseg, "seg_size");The first function seems to be correct while the second one returns the same value divided by 512?
yes this is a bug - thanks for reporting.
Patch submitted to lvm-devel.