From 49b95a5e2131e86b0c204d9d333bc3ed4801befc Mon Sep 17 00:00:00 2001 From: Jonathan Earl Brassow Date: Fri, 15 Jan 2010 16:00:23 +0000 Subject: [PATCH] Off-by-one count was causing not all the mirror table parameters that were necessary to be passed on to userspace. The cluster mirror table (log portion only) used to look like this: clustered-disk \ [[no]sync] [block_on_error] Now it looks like this: userspace clustered-disk \ [[no]sync] So, there is one extra argument in the latter case - this was unaccounted for. Signed-off-by: Jonathan Brassow --- libdm/libdm-deptree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index e4bf9b3d4..6df912d1e 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -1408,6 +1408,9 @@ static int _mirror_emit_segment_line(struct dm_task *dmt, uint32_t major, if (!dm_log_userspace) EMIT_PARAMS(pos, "clustered-"); + else + /* For clustered-* type field inserted later */ + log_parm_count++; } if (!seg->log)