mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 18:55:19 +03:00
Removed wrong 'lv->vg' argument from lv_is_cow() call. Is used in lv_is_cow internally.
This commit is contained in:
parent
e680d3190f
commit
dc511e9ecb
@ -76,7 +76,7 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv)
|
||||
}
|
||||
|
||||
log_verbose("Removing snapshot.");
|
||||
if (lv_is_cow(lv->vg, lv) && !vg_remove_snapshot(lv->vg, lv)) {
|
||||
if (lv_is_cow(lv) && !vg_remove_snapshot(lv->vg, lv)) {
|
||||
stack;
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user