mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-31 14:50:37 +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
f6d95e19c4
commit
827f1a3d30
@ -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…
x
Reference in New Issue
Block a user