Nir Soffer has posted comments on this change.

Change subject: gluster: Allow gluster mount with additional servers
......................................................................


Patch Set 22:

(2 comments)

https://gerrit.ovirt.org/#/c/40665/22/vdsm/storage/storageServer.py
File vdsm/storage/storageServer.py:

Line 288:     def options(self):
Line 289:         self._gluster_options = self._get_gluster_mount_options()
Line 290:         return ",".join(p for p in (self._options, 
self._gluster_options) if p)
Line 291: 
Line 292:     def _get_gluster_mount_options(self):
Lets be more specific - we do not compute here the gluster mount options, but 
the backup-volfile-servers option.

So lets rename this to _get_backup_servers_option()
Line 293:         if "backup-volfile-servers" in self._options:
Line 294:             self.log.warn("User specified mount options will be 
used.")
Line 295:             return ""
Line 296: 


Line 290:         return ",".join(p for p in (self._options, 
self._gluster_options) if p)
Line 291: 
Line 292:     def _get_gluster_mount_options(self):
Line 293:         if "backup-volfile-servers" in self._options:
Line 294:             self.log.warn("User specified mount options will be 
used.")
Lets be more specific about the warning:

    "User specified backup-volfile-servers option will be used"

And please consider this shorter and more direct:

    "Using user specified backup-volfile-servers option"
Line 295:             return ""
Line 296: 
Line 297:         volfileServer, volname = self._remotePath.split(":", 1)
Line 298:         volname = volname.strip('/')


-- 
To view, visit https://gerrit.ovirt.org/40665
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2478a5edc1fc9d24eb96d64a32a98a2467ce2989
Gerrit-PatchSet: 22
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ala Hino <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Ala Hino <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Darshan N <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to