]> sourceware.org Git - lvm2.git/commit
mirrors: Fix checks for mirror/raid/pvmove LVs.
authorAlasdair G Kergon <agk@redhat.com>
Mon, 15 Sep 2014 23:13:46 +0000 (00:13 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 15 Sep 2014 23:13:46 +0000 (00:13 +0100)
commit979be63f2537373b49e47aa3e8ce3f9bf2a4279f
treec9a5b0c098382ff201847565e9fea7afc39baaba
parent829e5a40373a2ef1721dc9210350c86c4b9d70f7
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
15 files changed:
WHATS_NEW
lib/activate/dev_manager.c
lib/format_text/flags.c
lib/format_text/import_vsn1.c
lib/metadata/lv.c
lib/metadata/lv_manip.c
lib/metadata/metadata-exported.h
lib/metadata/mirror.c
lib/metadata/raid_manip.c
lib/metadata/segtype.h
lib/mirror/mirrored.c
lib/report/report.c
tools/lvchange.c
tools/pvmove.c
tools/vgreduce.c
This page took 0.039881 seconds and 5 git commands to generate.