Federico Simoncelli has posted comments on this change.

Change subject: Remove redundant check that causes lvm cache to refresh every 
volume creation
......................................................................


Patch Set 4: Code-Review+2

(1 comment)

Minor comment and waiting for verification.

....................................................
File vdsm/storage/remoteFileHandler.py
Line 352:     if creatExcl:
Line 353:         flags |= os.O_EXCL
Line 354: 
Line 355:     fd = os.open(path, flags)
Line 356:     with os.fdopen(fd, 'w') as f:
This looks fine (as os.fdopen should take care of closing also the fd) anyway 
an alternate form using the file descriptor is:

 fd = os.open(path, flags)
 try:
     if mode is not None:
         os.fchmod(fd, mode)
     os.ftruncate(fd, size)
 finally:
     os.close(fd)

Use (or keep) the one you prefer.
Line 357:         if mode is not None:
Line 358:             os.chmod(path, mode)
Line 359:         f.truncate(size)
Line 360: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib6f3b6ca8313070d0345b5f76ebb0b3d9772d14f
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Yeela Kaplan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to