]> sourceware.org Git - lvm2.git/commitdiff
Move function up file
authorAlasdair Kergon <agk@redhat.com>
Tue, 20 Apr 2010 12:14:28 +0000 (12:14 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 20 Apr 2010 12:14:28 +0000 (12:14 +0000)
lib/metadata/mirror.c

index e68a19b65d80252110d5e66b98a30402f4b7d2ad..1f9d38e785b1137899d7c2536d531941bcdc8587 100644 (file)
@@ -516,6 +516,21 @@ static int _move_removable_mimages_to_end(struct logical_volume *lv,
        return !count;
 }
 
+static int _mirrored_lv_in_sync(struct logical_volume *lv)
+{
+       float sync_percent;
+       percent_range_t percent_range;
+
+       if (!lv_mirror_percent(lv->vg->cmd, lv, 0, &sync_percent,
+                              &percent_range, NULL)) {
+               log_error("Unable to determine mirror sync status of %s/%s.",
+                         lv->vg->name, lv->name);
+               return 0;
+       }
+
+       return (percent_range == PERCENT_100) ? 1 : 0;
+}
+
 /*
  * Split off 'split_count' legs from a mirror
  *
@@ -960,21 +975,6 @@ int remove_mirror_images(struct logical_volume *lv, uint32_t num_mirrors,
        return 1;
 }
 
-static int _mirrored_lv_in_sync(struct logical_volume *lv)
-{
-       float sync_percent;
-       percent_range_t percent_range;
-
-       if (!lv_mirror_percent(lv->vg->cmd, lv, 0, &sync_percent,
-                              &percent_range, NULL)) {
-               log_error("Unable to determine mirror sync status of %s/%s.",
-                         lv->vg->name, lv->name);
-               return 0;
-       }
-
-       return (percent_range == PERCENT_100) ? 1 : 0;
-}
-
 /*
  * Collapsing temporary mirror layers.
  *
This page took 0.034429 seconds and 5 git commands to generate.