Adam Litke has uploaded a new change for review. Change subject: oop: add writeFile API ......................................................................
oop: add writeFile API We currently have a writeLines API but we should also have an API for writing a prepared string to the file. Change-Id: I12fa2736568174ca8ecef371ba4285765687971a Signed-off-by: Adam Litke <[email protected]> --- M vdsm/storage/outOfProcess.py 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/15/56415/1 diff --git a/vdsm/storage/outOfProcess.py b/vdsm/storage/outOfProcess.py index 6488a07..ce2057d 100644 --- a/vdsm/storage/outOfProcess.py +++ b/vdsm/storage/outOfProcess.py @@ -326,6 +326,10 @@ def writeLines(ioproc, path, lines): data = ''.join(lines) + return writeFile(ioproc, path, data) + + +def writeFile(ioproc, path, data): return ioproc.writefile(path, data) @@ -361,6 +365,7 @@ self.directReadLines = partial(directReadLines, ioproc) self.readLines = partial(readLines, ioproc) self.writeLines = partial(writeLines, ioproc) + self.writeFile = partial(writeFile, ioproc) self.simpleWalk = partial(simpleWalk, ioproc) self.directTouch = partial(directTouch, ioproc) self.truncateFile = partial(truncateFile, ioproc) -- To view, visit https://gerrit.ovirt.org/56415 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I12fa2736568174ca8ecef371ba4285765687971a Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Adam Litke <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
