'Creates a regular file of given size in GiB.'

def _create_regular_file(self, path, size):

    block_size_mb = 1
    block_count = ((size * units.Gi) // (block_size_mb * units.Mi))
    self._execute('dd', 'if=/dev/zero', ('of=%s' % path), ('bs=%dM' % block_size_mb), ('count=%d' % block_count), run_as_root=self._execute_as_root)
