Revision 965e0e6a

b/lib/cmdlib.py
9559 9559
  @param lu: the logical unit on whose behalf we execute
9560 9560
  @type instance: L{objects.Instance}
9561 9561
  @param instance: the instance whose disks we should create
9562
  @return: the success of the wipe
9562
  @type disks: None or list of tuple of (number, L{objects.Disk}, number)
9563
  @param disks: Disk details; tuple contains disk index, disk object and the
9564
    start offset
9563 9565

  
9564 9566
  """
9565 9567
  node = instance.primary_node
......
14074 14076
        self.LogWarning("Failed to create volume %s (%s) on node '%s': %s",
14075 14077
                        disk.iv_name, disk, node, err)
14076 14078

  
14079
    if self.cluster.prealloc_wipe_disks:
14080
      # Wipe new disk
14081
      _WipeDisks(self, instance,
14082
                 disks=[(idx, disk, 0)])
14083

  
14077 14084
    return (disk, [
14078 14085
      ("disk/%d" % idx, "add:size=%s,mode=%s" % (disk.size, disk.mode)),
14079 14086
      ])

Also available in: Unified diff