Revision c99a3cc0

b/lib/backend.py
646 646
  """Creates a block device for an instance.
647 647

  
648 648
  Args:
649
   bdev: a ganeti.objects.Disk object
650
   size: the size of the physical underlying devices
651
   do_open: if the device should be `Assemble()`-d and
652
            `Open()`-ed after creation
649
   disk: a ganeti.objects.Disk object
650
   size: the size of the physical underlying device
651
   owner: a string with the name of the instance
652
   on_primary: a boolean indicating if it will be created on the primary
653
     node or not
654
   info: string 
653 655

  
654 656
  Returns:
655 657
    the new unique_id of the device (this can sometime be
......
1539 1541

  
1540 1542

  
1541 1543
class DevCacheManager(object):
1542
  """Simple class for managing a chache of block device information.
1544
  """Simple class for managing a cache of block device information.
1543 1545

  
1544 1546
  """
1545 1547
  _DEV_PREFIX = "/dev/"
b/lib/bdev.py
395 395
    self._lv_name = new_name
396 396
    self.dev_path = "/dev/%s/%s" % (self._vg_name, self._lv_name)
397 397

  
398

  
399 398
  def Attach(self):
400 399
    """Attach to an existing LV.
401 400

  
402 401
    This method will try to see if an existing and active LV exists
403
    which matches the our name. If so, its major/minor will be
402
    which matches our name. If so, its major/minor will be
404 403
    recorded.
405 404

  
406 405
    """
b/lib/cmdlib.py
3756 3756
      # ok, we created the new LVs, so now we know we have the needed
3757 3757
      # storage; as such, we proceed on the target node to rename
3758 3758
      # old_lv to _old, and new_lv to old_lv; note that we rename LVs
3759
      # using the assumption than logical_id == physical_id (which in
3759
      # using the assumption that logical_id == physical_id (which in
3760 3760
      # turn is the unique_id on that node)
3761 3761

  
3762 3762
      # FIXME(iustin): use a better name for the replaced LVs
b/lib/mcpu.py
104 104
    """Execute an opcode.
105 105

  
106 106
    Args:
107
     - cfg: the configuration in which we execute this opcode
108
     - opcode: the opcode to be executed
107
      op: the opcode to be executed
109 108

  
110 109
    """
111 110
    if not isinstance(op, opcodes.OpCode):

Also available in: Unified diff