'Create descriptor for a single flat extent virtual disk.
To create the descriptor, we create a virtual disk and delete its flat
extent.
:param dc_ref: reference to the datacenter
:param path: descriptor datastore file path
:param size_in_kb: size of the virtual disk in KB
:param adapter_type: virtual disk adapter type
:param disk_type: type of the virtual disk'

def create_flat_extent_virtual_disk_descriptor(self, dc_ref, path, size_in_kb, adapter_type, disk_type):

    LOG.debug('Creating    descriptor:    %(path)s    with    size    (KB):    %(size)s,    adapter_type:    %(adapter_type)s    and    disk_type:    %(disk_type)s.', {'path': path.get_descriptor_ds_file_path(), 'size': size_in_kb, 'adapter_type': adapter_type, 'disk_type': disk_type})
    self.create_virtual_disk(dc_ref, path.get_descriptor_ds_file_path(), size_in_kb, adapter_type, disk_type)
    self.delete_file(path.get_flat_extent_ds_file_path(), dc_ref)
    LOG.debug('Created    descriptor:    %s.', path.get_descriptor_ds_file_path())
