]> sourceware.org Git - lvm2.git/commit
raid: activation with list
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 14 Dec 2016 10:16:47 +0000 (11:16 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 14 Dec 2016 10:37:02 +0000 (11:37 +0100)
commit77e09c3fb4d019ab3a0472059481ef990c64b415
tree678c33c14c7d165f5fa153a3b5fd0d4df10760c8
parent4a05f83278a1b1967b91d8f47fa1f7ce18341439
raid: activation with list

Commit 069039204002e5c8514050fe541bbd378c383a02 revealed a problem
in raid metadata manipulation.

We do two operations in one table reload:
- raid leg/image extraction
- rename remaining raid legs

This should be made in separate steps. Otherwise we do an
uncorrectable table change on error path (leaving tables
for admin and dmsetup).

As a hotfix - restore the previous logic and use a single
new function _lv_update_and_reload_list which activates exclusively
extracted LVs on the list before resuming suspended raid LV.
This restore 'rename' functionality upon resume.

Also still preserve the 'origin_only' logic - although we know
it's not working properly for cluster and LV stacking.

Further fixes are needed.
lib/metadata/raid_manip.c
This page took 0.038326 seconds and 5 git commands to generate.