mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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 <parm_count> <disk> <region_size> <uuid> \ [[no]sync] [block_on_error] Now it looks like this: userspace <parm_count> <uuid> clustered-disk <disk> <region_size> \ [[no]sync] So, there is one extra argument in the latter case - this was unaccounted for. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
This commit is contained in:
parent
80b664f571
commit
49b95a5e21
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user