From Dan Kenigsberg <[email protected]>: Dan Kenigsberg has posted comments on this change.
Change subject: storage: validateDirAccess: move to sdperm ...................................................................... Patch Set 2: Verified+1 (1 comment) https://gerrit.ovirt.org/#/c/73115/2/lib/vdsm/storage/sdperm.py File lib/vdsm/storage/sdperm.py: Line 28: from . import exception as se Line 29: from . import outOfProcess Line 30: Line 31: Line 32: def validate_dir_access(path): > Why not move this to fileutils.py? Unlike fileUtils's functions, this monstrosity is not an aggregation of os function calls. fileUtils functions are usually called through outOfProcess; here, the oop is being used. I notice the problem since pulling the dependency on outOfProcess into fileUtils makes the latter non-importable in Python 3. Line 33: """verify that path's permissions match those of a file storage domain""" Line 34: try: Line 35: outOfProcess.getGlobalProcPool().fileUtils.validateAccess(path) Line 36: supervdsm.getProxy().validateAccess( -- To view, visit https://gerrit.ovirt.org/73115 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I21ead1cb635f8224cb09f7319ffcb55eebe2a9e3 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: gerrit-hooks <[email protected]> Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list -- [email protected] To unsubscribe send an email to [email protected]
