Revision 968a7623 lib/rpc.py

b/lib/rpc.py
807 807
    params = [instance_name, [cf.ToDict() for cf in disks]]
808 808
    return self._SingleNodeCall(node, "blockdev_close", params)
809 809

  
810
  def call_blockdev_getsizes(self, node, disks):
811
    """Returns the size of the given disks.
812

  
813
    This is a single-node call.
814

  
815
    """
816
    params = [[cf.ToDict() for cf in disks]]
817
    return self._SingleNodeCall(node, "blockdev_getsize", params)
818

  
810 819
  def call_drbd_disconnect_net(self, node_list, nodes_ip, disks):
811 820
    """Disconnects the network of the given drbd devices.
812 821

  

Also available in: Unified diff