1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix "Calculate mirror log size" commit, the le_count should be always set.

This commit is contained in:
Milan Broz 2009-01-06 17:24:21 +00:00
parent 6cca7a9fd6
commit de28fed87b

View File

@ -844,7 +844,7 @@ static int _for_each_pv(struct cmd_context *cmd, struct logical_volume *lv,
/* FIXME only_single_area_segments used as workaround to skip log LV - needs new param? */ /* FIXME only_single_area_segments used as workaround to skip log LV - needs new param? */
if (!only_single_area_segments && seg_is_mirrored(seg) && seg->log_lv) { if (!only_single_area_segments && seg_is_mirrored(seg) && seg->log_lv) {
if (!(r = _for_each_pv(cmd, seg->log_lv, 0, seg->log_lv->le_count?:1, if (!(r = _for_each_pv(cmd, seg->log_lv, 0, seg->log_lv->le_count,
NULL, 0, 0, 0, only_single_area_segments, NULL, 0, 0, 0, only_single_area_segments,
fn, data))) fn, data)))
stack; stack;