1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

snapshot: disable merging for virtual snaps

Merging into virtual origin is not supposed to work.
This commit is contained in:
Zdenek Kabelac 2013-10-11 22:47:45 +02:00
parent 81504ba70c
commit ac961087b0
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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