Yeela Kaplan has uploaded a new change for review.
Change subject: repoStats implementation using ioprocess instead of RFH
......................................................................
repoStats implementation using ioprocess instead of RFH
Change-Id: I225b8914801628c625716f58cdca19884081b4b6
Signed-off-by: Yeela Kaplan <ykaplan(a)redhat.com>
---
M vdsm/storage/outOfProcess.py
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/66/27266/1
diff --git a/vdsm/storage/outOfProcess.py b/vdsm/storage/outOfProcess.py
index 3b5071c..f2de5f4 100644
--- a/vdsm/storage/outOfProcess.py
+++ b/vdsm/storage/outOfProcess.py
@@ -90,6 +90,17 @@
"%s", targetPath, perms)
raise OSError(errno.EACCES, os.strerror(errno.EACCES))
+ def pathExists(self, filename, writable=False):
+ return self._iop.pathExists(filename, writable)
+
+
+class _ioprocessOs(object):
+ def __init__(self, iop):
+ self._iop = iop
+
+ def statvfs(self, path):
+ return self._iop.statvfs(path)
+
class _ModuleWrapper(types.ModuleType):
def __init__(self, modName, procPool, ioproc, timeout, subModNames=()):
--
To view, visit
http://gerrit.ovirt.org/27266
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I225b8914801628c625716f58cdca19884081b4b6
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan(a)redhat.com>