* [PATCH LVM2] Guarantee ah->area_multiple non-zero
@ 2006-12-12 22:53 Jun'ichi Nomura
0 siblings, 0 replies; only message in thread
From: Jun'ichi Nomura @ 2006-12-12 22:53 UTC (permalink / raw)
To: lvm-devel
Hi,
This patch guarantees ah->area_multiple being non-zero.
Since ah->area_multiple is used everywhere to calculate the length
of allocation, it's safer to set 1 if ah->area_count is zero.
Otherwise, zero division could occur.
For example, ah->area_count can be zero when the allocation request
is only for log device.
It should be reproducible by converting corelog mirror to disklog
mirror. But fortunately or unfortunately, this bug is hidden by
other bug.
(See "[PATCH LVM2] set stripes = 0 for the log device only allocation")
Patch applicable to LVM2 2.02.16.
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guarantee-area_multiple-non-zero.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061212/3d8158be/attachment.bin>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-12 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 22:53 [PATCH LVM2] Guarantee ah->area_multiple non-zero Jun'ichi Nomura
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.