mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
cache: wipe cache-pool before reuse
Before we reuse cache-pool - we need to ensure metadata volume has wiped header.
This commit is contained in:
parent
29bd3cccc8
commit
b7bc28b7b7
@ -6678,6 +6678,10 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
|
|||||||
lp->extents = size;
|
lp->extents = size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seg_is_cache(lp) &&
|
||||||
|
!wipe_cache_pool(pool_lv))
|
||||||
|
return_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Resolve origin volume */
|
/* Resolve origin volume */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user