Skip to contentSkip to conversation

bug in lvm2app get_property value

linux-lvm ben 2 participants 2 messages Nov 22, 2010 – Nov 23, 2010

lore
Share & tools
lore

ben

author
#0 lore raw

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.

#1 lore raw
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.