1
0
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:
Heinz Mauelshagen 2002-02-21 14:00:45 +00:00
parent e680d3190f
commit dc511e9ecb

View File

@ -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;
}