]> sourceware.org Git - lvm2.git/commitdiff
Fix vgchange activation of snapshot with virtual origin.
authorMilan Broz <mbroz@redhat.com>
Wed, 14 Sep 2011 18:20:03 +0000 (18:20 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 14 Sep 2011 18:20:03 +0000 (18:20 +0000)
WHATS_NEW
tools/vgchange.c

index 8a304dc5ca5d7a75317eaf92ebbfc5c499c32b3d..8d2a1d12736b4bb5d13f0ad7ca937a37b9196686 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.89 - 
 ==================================
+  Fix vgchange activation of snapshot with virtual origin.
   Activate virtual snapshot origin exclusively (only on local node in cluster).
   Fix lv_mirror_count to handle mirrored stripes properly.
   Fix failure to down-convert a mirror to linear due to udev "dev open" conflict
index f36f27d4fe6a325db49f73ee6037b7174677f50f..7b4eb7417393f80e7d5afd276c673c29811cc2a3 100644 (file)
@@ -100,6 +100,10 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
                if (!lv_is_visible(lv))
                        continue;
 
+               /* If LV is sparse, activate origin instead */
+               if (lv_is_cow(lv) && lv_is_virtual_origin(origin_from_cow(lv)))
+                       lv = origin_from_cow(lv);
+
                /* Only request activation of snapshot origin devices */
                if ((lv->status & SNAPSHOT) || lv_is_cow(lv))
                        continue;
This page took 0.047443 seconds and 5 git commands to generate.