Change in vdsm[ovirt-3.4]: Allow getFileStats for non NFS ISO domains

tnisan at redhat.com tnisan at redhat.com
Thu Mar 20 10:11:09 UTC 2014


Tal Nisan has uploaded a new change for review.

Change subject: Allow getFileStats for non NFS ISO domains
......................................................................

Allow getFileStats for non NFS ISO domains

getFileStats only allowed file stats to be gathered from NFS ISO domains.
We currently support ISO domains on any file storage domain so the check
was corrected.

Change-Id: I7107d20b1b8b341086800bb35def895a70c4b4f0
Signed-off-by: Tal Nisan <tnisan at redhat.com>
Bug-Url: https://bugzilla.redhat.com/1075172
---
M vdsm/storage/hsm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/28/25928/1

diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 1416a78..03703bc 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -2246,7 +2246,7 @@
         vars.task.getSharedLock(STORAGE, sdUUID)
 
         dom = sdCache.produce(sdUUID=sdUUID)
-        if not dom.isISO or dom.getStorageType() != sd.NFS_DOMAIN:
+        if not dom.isISO or dom.getStorageType() not in sd.FILE_DOMAIN_TYPES:
             raise se.GetFileStatsError(sdUUID)
 
         fileStats = dom.getFileList(pattern=pattern,


-- 
To view, visit http://gerrit.ovirt.org/25928
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7107d20b1b8b341086800bb35def895a70c4b4f0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.4
Gerrit-Owner: Tal Nisan <tnisan at redhat.com>


More information about the vdsm-patches mailing list