[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] lvm2app lvm properties properties returns bad values.



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.
benscott nwlink com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]