[NEW PATCH] BZ#??????? - MD offset should be in MD_SIZE not in bytes (via gerrit-bot)

Saggi Mizrahi smizrahi at redhat.com
Thu Sep 1 11:47:07 UTC 2011


New patch submitted by Saggi Mizrahi (smizrahi at redhat.com)

You can review this change at: http://gerrit.usersys.redhat.com/888

commit d89f68cec7b1570a14decc0829503410479fd07a
Author: Saggi Mizrahi <smizrahi at redhat.com>
Date:   Thu Sep 1 14:48:59 2011 +0300

    BZ#??????? - MD offset should be in MD_SIZE not in bytes
    
    Change-Id: I381f510e23027a24e889d33042f7523ac383cd41

diff --git a/vdsm/storage/blockSD.py b/vdsm/storage/blockSD.py
index ab3241f..f5995e5 100644
--- a/vdsm/storage/blockSD.py
+++ b/vdsm/storage/blockSD.py
@@ -549,7 +549,7 @@ class BlockStorageDomain(sd.StorageDomain):
                 continue
 
             if size is None:
-                size = blockVolume.VOLUME_METASIZE
+                size = 1
 
             occupiedSlots.append((offset, size))
 
@@ -565,7 +565,7 @@ class BlockStorageDomain(sd.StorageDomain):
         # metadata look the same. The domain might get
         # confused and think it has lv metadata if it
         # finds something is written in that area.
-        freeSlot = SD_METADATA_SIZE
+        freeSlot = 1
         for offset, size in occupiedSlots:
             if offset - freeSlot > slotSize:
                 break




More information about the vdsm-patches mailing list