mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
toollib: print ignoring vorigin
When ignoring 'listed' volume, print info message. (So the final command error message is a bit less confusing, i.e. when user tries to deactive virtual origin: > lvchange -an vg/lvol2_vorigin Ignoring virtual origin logical volume vg/lvol2_vorigin. One or more specified logical volume(s) not found.
This commit is contained in:
parent
10e3715564
commit
7f4b1e7411
@ -230,8 +230,13 @@ int process_each_lv_in_vg(struct cmd_context *cmd,
|
||||
lv_is_cow(lvl->lv) && !lv_is_virtual_origin(origin_from_cow(lvl->lv)))
|
||||
continue;
|
||||
|
||||
if (lv_is_virtual_origin(lvl->lv) && !arg_count(cmd, all_ARG))
|
||||
if (lv_is_virtual_origin(lvl->lv) && !arg_count(cmd, all_ARG)) {
|
||||
if (lvargs_supplied &&
|
||||
str_list_match_item(arg_lvnames, lvl->lv->name))
|
||||
log_print_unless_silent("Ignoring virtual origin logical volume %s.",
|
||||
display_lvname(lvl->lv));
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* Only let hidden LVs through it --all was used or the LVs
|
||||
|
Loading…
Reference in New Issue
Block a user