1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-09-10 21:44:27 +03:00

Don't use block_on_error with mirror targets above version 1.12.

This commit is contained in:
Alasdair Kergon
2008-01-16 15:24:25 +00:00
parent 8868a4ffc2
commit a1ff319fda
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
Version 2.02.30 - Version 2.02.30 -
=================================== ===================================
Don't use block_on_error with mirror targets above version 1.12.
Update vgsplit to include vgcreate-style options when new VG is destination. Update vgsplit to include vgcreate-style options when new VG is destination.
Update vgsplit to accept existing VG as destination. Update vgsplit to accept existing VG as destination.
lvconvert waits for completion of initial sync by default. lvconvert waits for completion of initial sync by default.

View File

@@ -348,14 +348,14 @@ static int _mirrored_target_present(const struct lv_segment *seg __attribute((un
_mirrored_present = target_present("mirror", 1); _mirrored_present = target_present("mirror", 1);
/* /*
* block_on_error available with mirror target >= 1.1 * block_on_error available with mirror target >= 1.1 and <= 1.11
* or with 1.0 in RHEL4U3 driver >= 4.5 * or with 1.0 in RHEL4U3 driver >= 4.5
*/ */
/* FIXME Move this into libdevmapper */ /* FIXME Move this into libdevmapper */
if (target_version("mirror", &maj, &min, &patchlevel) && if (target_version("mirror", &maj, &min, &patchlevel) &&
maj == 1 && maj == 1 &&
(min >= 1 || ((min >= 1 && min <= 11) ||
(min == 0 && driver_version(vsn, sizeof(vsn)) && (min == 0 && driver_version(vsn, sizeof(vsn)) &&
sscanf(vsn, "%u.%u.%u", &maj2, &min2, &patchlevel2) == 3 && sscanf(vsn, "%u.%u.%u", &maj2, &min2, &patchlevel2) == 3 &&
maj2 == 4 && min2 == 5 && patchlevel2 == 0))) /* RHEL4U3 */ maj2 == 4 && min2 == 5 && patchlevel2 == 0))) /* RHEL4U3 */