* [linux-lvm] bug in lvm2app get_property value
@ 2010-11-22 6:34 ben
2010-11-23 4:03 ` Dave Wysochanski
0 siblings, 1 reply; 2+ messages in thread
From: ben @ 2010-11-22 6:34 UTC (permalink / raw)
To: linux-lvm
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] bug in lvm2app get_property value
2010-11-22 6:34 [linux-lvm] bug in lvm2app get_property value ben
@ 2010-11-23 4:03 ` Dave Wysochanski
0 siblings, 0 replies; 2+ messages in thread
From: Dave Wysochanski @ 2010-11-23 4:03 UTC (permalink / raw)
To: LVM general discussion and development
On Sun, 2010-11-21 at 22:34 -0800, ben wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-23 4:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22 6:34 [linux-lvm] bug in lvm2app get_property value ben
2010-11-23 4:03 ` Dave Wysochanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).