mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: enable work with partial LVs
Fix printed message and enable handling of missing PVs.
This commit is contained in:
parent
f8872578e9
commit
6dc4d03508
@ -1,5 +1,6 @@
|
||||
Version 2.02.162 -
|
||||
=================================
|
||||
Enabled lvconvert --uncache to work with partial VG.
|
||||
|
||||
Version 2.02.161 - 15th July 2016
|
||||
=================================
|
||||
|
@ -2122,15 +2122,17 @@ static int _lvconvert_uncache(struct cmd_context *cmd,
|
||||
return 0;
|
||||
}
|
||||
log_warn("WARNING: Uncaching of partially missing writethrough cache volume %s might destroy your data.",
|
||||
display_lvname(first_seg(seg->pool_lv)->metadata_lv));
|
||||
display_lvname(lv));
|
||||
}
|
||||
|
||||
if (!lp->yes &&
|
||||
yes_no_prompt("Do you really want to uncache %s? with missing LVs [y/n]: ",
|
||||
yes_no_prompt("Do you really want to uncache %s with missing LVs? [y/n]: ",
|
||||
display_lvname(lv)) == 'n') {
|
||||
log_error("Conversion aborted.");
|
||||
return 0;
|
||||
}
|
||||
cmd->handles_missing_pvs = 1;
|
||||
cmd->partial_activation = 1;
|
||||
}
|
||||
|
||||
if (lvremove_single(cmd, remove_lv, NULL) != ECMD_PROCESSED)
|
||||
|
Loading…
Reference in New Issue
Block a user