lvm2app lvm properties properties returns bad values.

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

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux