summaryrefslogtreecommitdiffstats
path: root/lib/metadata/mirror.c
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-03-29 12:51:57 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-03-29 12:51:57 +0000
commit60c10a45ce9ff9e1378465868e48cf5bcee1fe99 (patch)
tree9f7193d51ff2638398b96161085056f685545666 /lib/metadata/mirror.c
parent114faabf044b9693cdd279c0fa5e64551656c210 (diff)
downloadlvm2-60c10a45ce9ff9e1378465868e48cf5bcee1fe99.tar.gz
lvm2-60c10a45ce9ff9e1378465868e48cf5bcee1fe99.tar.xz
lvm2-60c10a45ce9ff9e1378465868e48cf5bcee1fe99.zip
s/MIRROR_NOTSYNCED/LV_NOTSYNCED/ - Flag will may refer to more than just mirrors
Diffstat (limited to 'lib/metadata/mirror.c')
-rw-r--r--lib/metadata/mirror.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c
index 791ed20d..47107544 100644
--- a/lib/metadata/mirror.c
+++ b/lib/metadata/mirror.c
@@ -701,7 +701,7 @@ static int _split_mirror_images(struct logical_volume *lv,
if (!remove_layer_from_lv(lv, sub_lv))
return_0;
lv->status &= ~MIRRORED;
- lv->status &= ~MIRROR_NOTSYNCED;
+ lv->status &= ~LV_NOTSYNCED;
}
if (!vg_write(mirrored_seg->lv->vg)) {
@@ -882,7 +882,7 @@ static int _remove_mirror_images(struct logical_volume *lv,
*/
if (lv_mirror_count(lv) == 1) {
lv->status &= ~MIRRORED;
- lv->status &= ~MIRROR_NOTSYNCED;
+ lv->status &= ~LV_NOTSYNCED;
}
mirrored_seg = first_seg(lv);
if (remove_log && !detached_log_lv)
@@ -894,7 +894,7 @@ static int _remove_mirror_images(struct logical_volume *lv,
* It can happen for vgreduce --removemissing. */
detached_log_lv = detach_mirror_log(mirrored_seg);
lv->status &= ~MIRRORED;
- lv->status &= ~MIRROR_NOTSYNCED;
+ lv->status &= ~LV_NOTSYNCED;
if (!replace_lv_with_error_segment(lv))
return_0;
} else if (remove_log)
@@ -1671,7 +1671,7 @@ int remove_mirror_log(struct cmd_context *cmd,
init_mirror_in_sync(1);
else {
/* A full resync will take place */
- lv->status &= ~MIRROR_NOTSYNCED;
+ lv->status &= ~LV_NOTSYNCED;
init_mirror_in_sync(0);
}