summaryrefslogtreecommitdiff
path: root/lib/mirror
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2014-09-16 00:13:46 +0100
committerAlasdair G Kergon <agk@redhat.com>2014-09-16 00:13:46 +0100
commit979be63f2537373b49e47aa3e8ce3f9bf2a4279f (patch)
treec9a5b0c098382ff201847565e9fea7afc39baaba /lib/mirror
parent829e5a40373a2ef1721dc9210350c86c4b9d70f7 (diff)
downloadlvm2-979be63f2537373b49e47aa3e8ce3f9bf2a4279f.tar.gz
mirrors: Fix checks for mirror/raid/pvmove LVs.
Try to enforce consistent macro usage along these lines: lv_is_mirror - mirror that uses the original dm-raid1 implementation (segment type "mirror") lv_is_mirror_type - also includes internal mirror image and log LVs lv_is_raid - raid volume that uses the new dm-raid implementation (segment type "raid") lv_is_raid_type - also includes internal raid image / log / metadata LVs lv_is_mirrored - LV is mirrored using either kernel implementation (excludes non-mirror modes like raid5 etc.) lv_is_pvmove - internal pvmove volume
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 1ab06cefd..74a8e376b 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -628,7 +628,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd)
segtype->ops = &_mirrored_ops;
segtype->name = "mirror";
segtype->private = NULL;
- segtype->flags = SEG_AREAS_MIRRORED;
+ segtype->flags = SEG_MIRROR | SEG_AREAS_MIRRORED;
#ifdef DEVMAPPER_SUPPORT
# ifdef DMEVENTD