From 11bfaa1df8a1cae26a891c128f9bbaf8116c9453 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 26 Aug 2011 18:17:05 +0000 Subject: [PATCH] same for segtype_is_thin --- lib/metadata/segtype.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/metadata/segtype.h b/lib/metadata/segtype.h index 28613b158..1b43c6b38 100644 --- a/lib/metadata/segtype.h +++ b/lib/metadata/segtype.h @@ -61,8 +61,9 @@ struct dev_manager; #define segtype_is_striped(segtype) ((segtype)->flags & SEG_AREAS_STRIPED ? 1 : 0) #define segtype_is_mirrored(segtype) ((segtype)->flags & SEG_AREAS_MIRRORED ? 1 : 0) #define segtype_is_raid(segtype) ((segtype)->flags & SEG_RAID ? 1 : 0) -#define segtype_is_thin(segtype) ((segtype)->flags & SEG_THIN ? 1 : 0) +#define segtype_is_thin(segtype) ((segtype)->flags & (SEG_THIN_POOL|SEG_THIN_VOLUME) ? 1 : 0) #define segtype_is_thin_pool(segtype) ((segtype)->flags & SEG_THIN_POOL ? 1 : 0) +#define segtype_is_thin_volume(segtype) ((segtype)->flags & SEG_THIN_VOLUME ? 1 : 0) #define segtype_is_virtual(segtype) ((segtype)->flags & SEG_VIRTUAL ? 1 : 0) struct segment_type {