Revision ee1478e5 lib/backend.py

b/lib/backend.py
1549 1549
    _Fail("Failed to get migration status: %s", err, exc=True)
1550 1550

  
1551 1551

  
1552
def BlockdevCreate(disk, size, owner, on_primary, info):
1552
def BlockdevCreate(disk, size, owner, on_primary, info, excl_stor):
1553 1553
  """Creates a block device for an instance.
1554 1554

  
1555 1555
  @type disk: L{objects.Disk}
......
1564 1564
  @type info: string
1565 1565
  @param info: string that will be sent to the physical device
1566 1566
      creation, used for example to set (LVM) tags on LVs
1567
  @type excl_stor: boolean
1568
  @param excl_stor: Whether exclusive_storage is active
1567 1569

  
1568 1570
  @return: the new unique_id of the device (this can sometime be
1569 1571
      computed only after creation), or None. On secondary nodes,
......
1590 1592
      clist.append(crdev)
1591 1593

  
1592 1594
  try:
1593
    device = bdev.Create(disk, clist)
1595
    device = bdev.Create(disk, clist, excl_stor)
1594 1596
  except errors.BlockDeviceError, err:
1595 1597
    _Fail("Can't create block device: %s", err)
1596 1598

  

Also available in: Unified diff