diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-06-17 14:17:16 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-06-17 14:17:16 +0000 |
commit | 3c9ff9e142d380578fe905fdff399250ac869ea7 (patch) | |
tree | 7b749973bda69ac3783f3d25fae88cb53c1aec1d | |
parent | 81beded3af44583de48868d0f2c02e9054d94006 (diff) | |
download | lvm2-3c9ff9e142d380578fe905fdff399250ac869ea7.tar.gz lvm2-3c9ff9e142d380578fe905fdff399250ac869ea7.tar.xz lvm2-3c9ff9e142d380578fe905fdff399250ac869ea7.zip |
Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | lib/mirror/mirrored.c | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,6 @@ Version 2.02.86 - ================================= + Use lv_activate_opts struct instead of ACTIVATE_EXCL status flag. Add lv_activate_opts structure for activation (replacing activation flags). Fix a problem with inconsistent pre-commit metadata on MISSING_PV devices. Add proper udev library context initialization and finalization to liblvm. diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c index 50e79c38..49b39e74 100644 --- a/lib/mirror/mirrored.c +++ b/lib/mirror/mirrored.c @@ -360,8 +360,7 @@ static int _add_log(struct dm_pool *mem, struct lv_segment *seg, * Use clustered mirror log for non-exclusive activation * in clustered VG. */ - if ((!(seg->lv->status & ACTIVATE_EXCL) && - (vg_is_clustered(seg->lv->vg)))) + if (!laopts->exclusive && vg_is_clustered(seg->lv->vg)) clustered = 1; if (seg->log_lv) { |