Revision f56ab6d1 lib/backend.py
b/lib/backend.py | ||
---|---|---|
2439 | 2439 |
return result |
2440 | 2440 |
|
2441 | 2441 |
|
2442 |
def BlockdevExport(disk, dest_node, dest_path, cluster_name): |
|
2442 |
def BlockdevExport(disk, dest_node_ip, dest_path, cluster_name):
|
|
2443 | 2443 |
"""Export a block device to a remote node. |
2444 | 2444 |
|
2445 | 2445 |
@type disk: L{objects.Disk} |
2446 | 2446 |
@param disk: the description of the disk to export |
2447 |
@type dest_node: str |
|
2448 |
@param dest_node: the destination node to export to
|
|
2447 |
@type dest_node_ip: str
|
|
2448 |
@param dest_node_ip: the destination node IP to export to
|
|
2449 | 2449 |
@type dest_path: str |
2450 | 2450 |
@param dest_path: the destination path on the target node |
2451 | 2451 |
@type cluster_name: str |
... | ... | |
2469 | 2469 |
destcmd = utils.BuildShellCmd("dd of=%s conv=nocreat,notrunc bs=65536" |
2470 | 2470 |
" oflag=dsync", dest_path) |
2471 | 2471 |
|
2472 |
remotecmd = _GetSshRunner(cluster_name).BuildCmd(dest_node, |
|
2472 |
remotecmd = _GetSshRunner(cluster_name).BuildCmd(dest_node_ip,
|
|
2473 | 2473 |
constants.SSH_LOGIN_USER, |
2474 | 2474 |
destcmd) |
2475 | 2475 |
|
Also available in: Unified diff