]> sourceware.org Git - lvm2.git/commit
lv_rename: fix snapshot rename
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Sep 2014 16:47:27 +0000 (18:47 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Sep 2014 17:15:24 +0000 (19:15 +0200)
commit413fc9d3e699206ec493a70c6baf98bc87b83a9f
treede560ae2e97eb79133bbcbce8965aba9cf6ff58c
parent319f67b1abd8b391958c8cd6d396c590bb5225be
lv_rename: fix snapshot rename

Fix rename operation for snapshot (cow) LV.
Only the snapshot's origin has the lock and by mistake suspend
and resume has been called for the snapshot LV.
This further made volumes unusable in cluster.

So instead of suspend and resuming list of LVs,
we need to just suspend and resume origin.

As the sequence write/suspend/commit/resume
is widely used in lvm2 code base - move it to
new lv_update_and_reload function.
WHATS_NEW
lib/metadata/lv_manip.c
lib/metadata/metadata-exported.h
This page took 0.036894 seconds and 5 git commands to generate.