Commit fb26b140 authored by Leigh Stoller's avatar Leigh Stoller

Change to GENIRACK mounts; if the VM has a public IP, then return

the public IP of ops for the mounts.
parent 12231390
......@@ -4783,8 +4783,22 @@ COMMAND_PROTOTYPE(domounts)
* XXX Fix this ... crazy routing problems on the racks.
*/
if (reqp->isvnode && reqp->sharing_mode[0]) {
/*
* See if the node has a public IP.
*/
res = mydb_query("select IP from virt_node_public_addr "
"where node_id='%s'",
1, reqp->vnodeid);
if (!res) {
error("MOUNTS: %s: DB Error public IP!\n",
reqp->vnodeid);
return 1;
}
if (!mysql_num_rows(res)) {
fsnode = FSJAILIP;
}
mysql_free_result(res);
}
#endif
/*
* Return project mount first.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment