Merge "Remove unused fallocate method/filter"

This commit is contained in:
Jenkins 2017-05-16 11:38:39 +00:00 committed by Gerrit Code Review
commit ffe7d919d8
2 changed files with 0 additions and 6 deletions

View File

@ -351,11 +351,6 @@ class RemoteFSDriver(driver.BaseVD):
'count=%d' % block_count, 'count=%d' % block_count,
run_as_root=self._execute_as_root) run_as_root=self._execute_as_root)
def _fallocate(self, path, size):
"""Creates a raw file of given size in GiB using fallocate."""
self._execute('fallocate', '--length=%sG' % size,
path, run_as_root=self._execute_as_root)
def _create_qcow2_file(self, path, size_gb): def _create_qcow2_file(self, path, size_gb):
"""Creates a QCOW2 file of a given size in GiB.""" """Creates a QCOW2 file of a given size in GiB."""

View File

@ -129,7 +129,6 @@ netapp_nfs_touch: CommandFilter, touch, root
# cinder/volume/drivers/glusterfs.py # cinder/volume/drivers/glusterfs.py
chgrp: CommandFilter, chgrp, root chgrp: CommandFilter, chgrp, root
umount: CommandFilter, umount, root umount: CommandFilter, umount, root
fallocate: CommandFilter, fallocate, root
# cinder/volumes/drivers/hds/hds.py: # cinder/volumes/drivers/hds/hds.py:
hus-cmd: CommandFilter, hus-cmd, root hus-cmd: CommandFilter, hus-cmd, root