Skip to contentSkip to conversation

lvm2app lvm properties properties returns bad values.

linux-lvm ben 1 participant 1 message May 22, 2011

lore
Share & tools
lore

ben

author
#0 lore raw

There is a problem with getting "lv_kernel_major", "lv_major" and minor. The issue seems to be that the numbers can be negative (-1) while the union only holds an unsigned 64 bit integer.

for instance this returns junk if "lv_kernel_major" is -1:

value = lvm_lv_get_property(lvm_lv, "lv_kernel_major");

Thank you.
[email protected]