Revision b1808f46 lib/backend.py

b/lib/backend.py
2437 2437
  return result
2438 2438

  
2439 2439

  
2440
def BlockdevExport(disk, dest_node, dest_path, cluster_name):
2440
def BlockdevExport(disk, dest_node_ip, dest_path, cluster_name):
2441 2441
  """Export a block device to a remote node.
2442 2442

  
2443 2443
  @type disk: L{objects.Disk}
2444 2444
  @param disk: the description of the disk to export
2445
  @type dest_node: str
2446
  @param dest_node: the destination node to export to
2445
  @type dest_node_ip: str
2446
  @param dest_node_ip: the destination node IP to export to
2447 2447
  @type dest_path: str
2448 2448
  @param dest_path: the destination path on the target node
2449 2449
  @type cluster_name: str
......
2467 2467
  destcmd = utils.BuildShellCmd("dd of=%s conv=nocreat,notrunc bs=65536"
2468 2468
                                " oflag=dsync", dest_path)
2469 2469

  
2470
  remotecmd = _GetSshRunner(cluster_name).BuildCmd(dest_node,
2470
  remotecmd = _GetSshRunner(cluster_name).BuildCmd(dest_node_ip,
2471 2471
                                                   constants.SSH_LOGIN_USER,
2472 2472
                                                   destcmd)
2473 2473

  

Also available in: Unified diff