From daf1d4cadc69aeb8f4d83e44697948150ffcfda3 Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 1 Mar 2017 19:30:52 +0100 Subject: [PATCH] lvconvert: add new reporting fields for reshaping Commit 48778bc5038f introduced new RAID reshaping related report fields. The inclusioon of segtype.h in properties.c isn't mandatory, remove it. Related: rhbz834579 Related: rhbz1191935 Related: rhbz1191978 --- lib/report/properties.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/report/properties.c b/lib/report/properties.c index 5264eb1ca..04f2cef24 100644 --- a/lib/report/properties.c +++ b/lib/report/properties.c @@ -16,7 +16,6 @@ #include "properties.h" #include "activate.h" #include "metadata.h" -#include "segtype.h" #define GET_VG_NUM_PROPERTY_FN(NAME, VALUE) \ @@ -461,7 +460,7 @@ GET_LVSEG_NUM_PROPERTY_FN(parity_chunks, lvseg->data_offset) #define _parity_chunks_set prop_not_implemented_set GET_LVSEG_NUM_PROPERTY_FN(stripes, lvseg->area_count) #define _stripes_set prop_not_implemented_set -GET_LVSEG_NUM_PROPERTY_FN(data_stripes, lvseg->area_count - lvseg->segtype->parity_devs) +GET_LVSEG_NUM_PROPERTY_FN(data_stripes, lvseg->area_count) #define _data_stripes_set prop_not_implemented_set GET_LVSEG_NUM_PROPERTY_FN(stripe_size, (SECTOR_SIZE * lvseg->stripe_size)) #define _stripe_size_set prop_not_implemented_set