'Creates regular file of given size.
Takes a lot of time for large files.
:param nms: nms object
:param path: path to new file
:param size: size of file'

def _create_regular_file(self, nms, path, size):

    block_size_mb = 1
    block_count = ((size * units.Gi) / (block_size_mb * units.Mi))
    LOG.info('Creating    regular    file:    %s.This    may    take    some    time.', path)
    nms.appliance.execute(('dd    if=/dev/zero    of=%(path)s    bs=%(bs)dM    count=%(count)d' % {'path': path, 'bs': block_size_mb, 'count': block_count}))
    LOG.info('Regular    file:    %s    created.', path)
