Liron Ar has posted comments on this change.

Change subject: engine: Split nfs, posix and iscsi logic when creating 
connection struct
......................................................................


Patch Set 2: Code-Review-1

(3 comments)

....................................................
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/ConnectStorageServerVDSCommand.java
Line 73:         DefaultValueMap conParams = new DefaultValueMap();
Line 74:         conParams.put("id", connection.getid(), Guid.Empty.toString());
Line 75:         conParams.put("connection", connection.getconnection(), "");
Line 76: 
Line 77:         switch (connection.getstorage_type()) {
have you verified that this change is safe for all vdsm versions?
Line 78:             case ISCSI:
Line 79:                 conParams.put("portal", connection.getportal(), "");
Line 80:                 conParams.put("port", connection.getport(), "");
Line 81:                 conParams.put("iqn", connection.getiqn(), "");


Line 82:                 conParams.put("user", connection.getuser_name(), "");
Line 83:                 conParams.put("password", connection.getpassword(), 
"");
Line 84:                 break;
Line 85: 
Line 86:             case POSIXFS:
now for posix those would be sent even if the storage pool compatibility 
version doesn't support it which is behavior change.
Line 87:                 // For mnt_options and vfs_type - if they are null
Line 88:                 // or empty we should not send a key with an empty 
value
Line 89:                 conParams.putIfNotEmpty("mnt_options", 
connection.getMountOptions());
Line 90:                 conParams.putIfNotEmpty("vfs_type", 
connection.getVfsType());


Line 86:             case POSIXFS:
Line 87:                 // For mnt_options and vfs_type - if they are null
Line 88:                 // or empty we should not send a key with an empty 
value
Line 89:                 conParams.putIfNotEmpty("mnt_options", 
connection.getMountOptions());
Line 90:                 conParams.putIfNotEmpty("vfs_type", 
connection.getVfsType());
there's a bug here - why aren't those passed for nfs now?
Line 91:                 break;
Line 92: 
Line 93:             case NFS:
Line 94:                 // storage_pool can be null when connecting through 
vds which has no storage pool


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iba33ea1b40ef1eb9c74cad7b0531dc26e21c049a
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to