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:
parent
81504ba70c
commit
ac961087b0
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user