@staticmethod
def _create_swap(target, swap_mb, max_size=None):
    'Create a swap file of specified size.'
    libvirt_utils.create_image('raw', target, ('%dM' % swap_mb))
    utils.mkfs('swap', target)
Create a swap file of specified size.
@staticmethod
def _create_swap(target, swap_mb, max_size=None):
    
    libvirt_utils.create_image('raw', target, ('%dM' % swap_mb))
    utils.mkfs('swap', target)