Revision b8d26c6e lib/rpc.py

b/lib/rpc.py
1047 1047
    return result
1048 1048

  
1049 1049
  @_RpcTimeout(_TMO_NORMAL)
1050
  def call_blockdev_getmirrorstatus_multi(self, node_list, node_disks):
1051
    """Request status of (mirroring) devices from multiple nodes.
1052

  
1053
    This is a multi-node call.
1054

  
1055
    """
1056
    result = self._MultiNodeCall(node_list, "blockdev_getmirrorstatus_multi",
1057
                                 [dict((name, [dsk.ToDict() for dsk in disks])
1058
                                       for name, disks in node_disks.items())])
1059
    for nres in result.values():
1060
      if not nres.fail_msg:
1061
        nres.payload = [objects.BlockDevStatus.FromDict(i)
1062
                        for i in nres.payload]
1063
    return result
1064

  
1065
  @_RpcTimeout(_TMO_NORMAL)
1050 1066
  def call_blockdev_find(self, node, disk):
1051 1067
    """Request identification of a given block device.
1052 1068

  

Also available in: Unified diff