Revision 24711492 lib/backend.py

b/lib/backend.py
2003 2003
  return fn(instance, dev_type, device, extra, seq)
2004 2004

  
2005 2005

  
2006
def HotplugSupported(instance):
2007
  """Checks if hotplug is generally supported.
2008

  
2009
  """
2010
  hyper = hypervisor.GetHypervisor(instance.hypervisor)
2011
  try:
2012
    hyper.HotplugSupported(instance)
2013
  except errors.HotplugError, err:
2014
    _Fail("Hotplug is not supported: %s", err)
2015

  
2016

  
2006 2017
def BlockdevCreate(disk, size, owner, on_primary, info, excl_stor):
2007 2018
  """Creates a block device for an instance.
2008 2019

  

Also available in: Unified diff