Change in vdsm[master]: FakeLVM: Add invalidateVG stub

alitke at redhat.com alitke at redhat.com
Wed Mar 9 21:36:05 UTC 2016


Adam Litke has uploaded a new change for review.

Change subject: FakeLVM: Add invalidateVG stub
......................................................................

FakeLVM: Add invalidateVG stub

Real code expects to call lvm.invalidateVG in cases where our cache
needs to be invalidated and the data should refreshed from LVM.  FakeLVM
has no such cache so this is a no-op.

Change-Id: I5778501e5cc4c83e3793e647dd47a883e0c55680
Signed-off-by: Adam Litke <alitke at redhat.com>
---
M tests/storagefakelib.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/66/54566/1

diff --git a/tests/storagefakelib.py b/tests/storagefakelib.py
index 3255809..437ee28 100644
--- a/tests/storagefakelib.py
+++ b/tests/storagefakelib.py
@@ -83,6 +83,9 @@
         for dev in devices:
             self.pvmd[dev]['vg_uuid'] = vg_md['uuid']
 
+    def invalidateVG(self, vgName):
+        pass
+
     def createLV(self, vgName, lvName, size, activate=True, contiguous=False,
                  initialTag=None):
         # Size is expected as a string in MB, convert to a string in bytes.


-- 
To view, visit https://gerrit.ovirt.org/54566
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5778501e5cc4c83e3793e647dd47a883e0c55680
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <alitke at redhat.com>


More information about the vdsm-patches mailing list