master - vgsplit: Mark cache moving code NOTREACHED.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e7b8e0a10c500f94f8d7815d83d88f0a45f2c570 Commit: e7b8e0a10c500f94f8d7815d83d88f0a45f2c570 Parent: 6d2a26f6b6031f275b89a0210a9c5436e006a544 Author: Alasdair G Kergon <[email protected]> AuthorDate: Fri Apr 4 01:19:04 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Fri Apr 4 01:19:04 2014 +0100
vgsplit: Mark cache moving code NOTREACHED.
--- tools/vgsplit.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
tools/vgsplit.c +2 -0
@@ -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 );