Sergey Gotliv has posted comments on this change. Change subject: oop: improve safety for truncateFile ......................................................................
Patch Set 1: (1 comment) .................................................... Commit Message Line 12: * a new comment has been added mentioning O_TRUNC and "w" to avoid any Line 13: future mistake in this area Line 14: * a new test has been added to check the expected outcomes Line 15: * the "w" mode has been removed from truncateFile (used in os.fdopen) Line 16: to prevent any future reconversion to open(path, "w") Yes. This bug is revealed in Online Disk Resize flow which is a part of 3.3. Line 17: * the risk of a file descriptor leak (for a failing os.fdopen call) Line 18: has been removed using the relevant posix calls Line 19: Line 20: Change-Id: Ib71b53498c7bc4ea7a1ab725feb18bc5929f8c85 -- To view, visit http://gerrit.ovirt.org/20046 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ib71b53498c7bc4ea7a1ab725feb18bc5929f8c85 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <fsimo...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com> Gerrit-Reviewer: Federico Simoncelli <fsimo...@redhat.com> Gerrit-Reviewer: Nir Soffer <nsof...@redhat.com> Gerrit-Reviewer: Saggi Mizrahi <smizr...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Yeela Kaplan <ykap...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches