mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
writecache: archive before modification of metadata
Archive before we start to modify metadata.
This commit is contained in:
parent
08e838f488
commit
92c0e8c17f
@ -6506,6 +6506,9 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!archive(vg))
|
||||
return_0;
|
||||
|
||||
if (!lv_detach_writecache_cachevol(lv, 1)) {
|
||||
log_error("Failed to detach writecache from %s", display_lvname(lv));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user