Revision 254d4709 lib/backend.py
b/lib/backend.py | ||
---|---|---|
1663 | 1663 |
return fn(instance, dev_type, device, extra, seq) |
1664 | 1664 |
|
1665 | 1665 |
|
1666 |
def HotplugSupported(instance): |
|
1667 |
"""Checks if hotplug is generally supported. |
|
1668 |
|
|
1669 |
""" |
|
1670 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
1671 |
try: |
|
1672 |
hyper.HotplugSupported(instance) |
|
1673 |
except errors.HotplugError, err: |
|
1674 |
_Fail("Hotplug is not supported: %s", err) |
|
1675 |
|
|
1676 |
|
|
1666 | 1677 |
def BlockdevCreate(disk, size, owner, on_primary, info, excl_stor): |
1667 | 1678 |
"""Creates a block device for an instance. |
1668 | 1679 |
|
Also available in: Unified diff