mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin update prompt message
Enhance message with info about how many thin volumes are going to be removed with thin pool removal.
This commit is contained in:
parent
8542953f74
commit
5f129d15b1
@ -3257,10 +3257,12 @@ int lv_remove_with_dependencies(struct cmd_context *cmd, struct logical_volume *
|
||||
}
|
||||
|
||||
if (lv_is_used_thin_pool(lv)) {
|
||||
/* remove thin LVs first */
|
||||
/* Remove thin LVs first */
|
||||
if ((force == PROMPT) &&
|
||||
yes_no_prompt("Do you really want to remove all thin volumes when removing"
|
||||
" pool logical volume %s? [y/n]: ", lv->name) == 'n') {
|
||||
yes_no_prompt("Removing pool %s will also remove %u "
|
||||
"thin volume(s). OK? [y/n]: ", lv->name,
|
||||
/* Note: Snaphosts not included */
|
||||
dm_list_size(&lv->segs_using_this_lv)) == 'n') {
|
||||
log_error("Logical volume %s not removed.", lv->name);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user