]> sourceware.org Git - lvm2.git/commit - libdm/libdm-deptree.c
Make conversion from a synced 'mirror' to 'raid1' not cause a full resync.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Mon, 13 Feb 2012 20:13:39 +0000 (20:13 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Mon, 13 Feb 2012 20:13:39 +0000 (20:13 +0000)
commitad48a46fc9df2ad75510a975c5b15535fc7da825
tree337d704df8b122eeee01ebefac0f50ece14ddf27
parent96f82296ae357325580e1c8512942619750ba1e6
Make conversion from a synced 'mirror' to 'raid1' not cause a full resync.

It was not possible to pass down the DM_[FORCE|NO]SYNC flags to
'dm_tree_node_add_raid_target'.  This meant that converting to 'raid1' from
'mirror' would cause a full resync.  (It also meant that '--nosync' was
ineffective when creating a 'raid1' LV.)

I've taken the 'reserved' parameter in 'dm_tree_node_add_raid_target' and
used it for the "flags" parameter.  Now it is possible to pass the sync
flags and any other flags that may come up.
WHATS_NEW
lib/raid/raid.c
libdm/libdevmapper.h
libdm/libdm-deptree.c
This page took 0.031806 seconds and 5 git commands to generate.