master - snapshot: disable merging for virtual snaps
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ac961087b0fe9846f95bedee7687d9ca840b217d Commit: ac961087b0fe9846f95bedee7687d9ca840b217d Parent: 81504ba70caec0adaa63cb4a074b7296d109e807 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Oct 11 22:47:45 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Oct 12 00:15:55 2013 +0200
snapshot: disable merging for virtual snaps
Merging into virtual origin is not supposed to work.
--- WHATS_NEW | 1 + tools/lvconvert.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.104 =================================== + Disable unsupported merge for virtual snapshot. Move code to remove virtual snapshot from tools to lib for lvm2app. Fix possible race during daemon worker thread creation (lvmetad). Fix possible deadlock while clearing lvmetad cache for full rescan.
tools/lvconvert.c +4 -0
@@ -1891,6 +1891,10 @@ static int lvconvert_merge(struct cmd_context *cmd, find_merging_snapshot(origin)->cow->name);return 0 ; } +if (lv_is_virtual_origin (origin)) { +log_error ("Snapshot %s has virtual origin." , lv->name); +return 0 ; + }/* * Prevent merge with open device(s) as it would likely lead