Yedidyah Bar David has posted comments on this change.

Change subject: packaging: setup: Clean up treatment of /etc/exports
......................................................................


Patch Set 5:

(3 comments)

....................................................
File packaging/setup/plugins/ovirt-engine-setup/system/exportfs.py
Line 117:         exports_changed = False
Line 118:         if os.path.exists(osetupcons.FileLocations.NFS_EXPORT_DIR):
Line 119:             self._conf = 
osetupcons.FileLocations.OVIRT_NFS_EXPORT_FILE
Line 120:             if index is not None:
Line 121:                 exports_changed = True
OK, won't argue.
Line 122:                 new_line = exports_content[index]
Line 123:                 del exports_content[index]
Line 124:             
self.environment[otopicons.CoreEnv.MAIN_TRANSACTION].append(
Line 125:                 filetransaction.FileTransaction(


Line 118:         if os.path.exists(osetupcons.FileLocations.NFS_EXPORT_DIR):
Line 119:             self._conf = 
osetupcons.FileLocations.OVIRT_NFS_EXPORT_FILE
Line 120:             if index is not None:
Line 121:                 exports_changed = True
Line 122:                 new_line = exports_content[index]
I am not sure it will enter 3.3, so no reason to talk about it right now. And 
it does not solve upgrades. Again - if we keep the line where it's in 
/etc/exports I see no reason not to keep it if it moves to exports.d/file or if 
it's already there. They are all the same. And, mind you,  el6 users have only 
/etc/exports. Do you really think the OS should make such a difference?
Line 123:                 del exports_content[index]
Line 124:             
self.environment[otopicons.CoreEnv.MAIN_TRANSACTION].append(
Line 125:                 filetransaction.FileTransaction(
Line 126:                     name=self._conf,


Line 128:                     modifiedList=uninstall_files,
Line 129:                 )
Line 130:             )
Line 131:         else:
Line 132:             self._conf = osetupcons.FileLocations.NFS_EXPORT_FILE
I do not change it. That's the first and only place it's set - either this 
place of the if above. Apart from None in the beginning.
Line 133:             if index is None:
Line 134:                 exports_changed = True
Line 135:                 exports_content.append(new_line)
Line 136:                 exports_uninstall_group.addChanges(


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I035817c048518f77fc666cc6d5212c8e46edd65d
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschr...@redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to