LVM2/libdm libdm-deptree.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: jbrassow at sourceware.org 2010-01-15 16:00:23
Modified files:
libdm : libdm-deptree.c
Log message:
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 <[email protected]>
libdm/libdm-deptree.c +3 -0
@@ -1408,6 +1408,9 @@if (!dm_log_userspace)EMIT_PARAMS (pos,"clustered-" ); +else +/* For clustered-* type field inserted later */ + log_parm_count++; }if (!seg->log)