mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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;
|
||||
}
|
||||
}
|
||||
|
||||
if (seg_is_cache(lp) &&
|
||||
!wipe_cache_pool(pool_lv))
|
||||
return_NULL;
|
||||
}
|
||||
|
||||
/* Resolve origin volume */
|
||||
|
Loading…
Reference in New Issue
Block a user