1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-28 02:50:41 +03:00

vgsplit: Mark cache moving code NOTREACHED.

This commit is contained in:
Alasdair G Kergon 2014-04-04 01:19:04 +01:00
parent 6d2a26f6b6
commit e7b8e0a10c

View File

@ -299,6 +299,8 @@ static int _move_cache(struct volume_group *vg_from,
log_error("Unable to split VG while it contains cache LVs");
return 0;
/* NOTREACHED */
if (lv_is_cache(lv)) {
orig = seg_lv(seg, 0);
data = seg_lv(first_seg(seg->pool_lv), 0);