From 957fae85f1dbad594ae94e47f7a8ec7264df55a0 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Fri, 28 Apr 2017 10:29:14 -0400 Subject: [PATCH] Remove unused fallocate method/filter Use of this method was removed when the glusterfs driver was removed. Change-Id: I0ccdb5a3e81d387c61341c10f588f6985de75042 --- cinder/volume/drivers/remotefs.py | 5 ----- etc/cinder/rootwrap.d/volume.filters | 1 - 2 files changed, 6 deletions(-) diff --git a/cinder/volume/drivers/remotefs.py b/cinder/volume/drivers/remotefs.py index ff2d5590634..81705aba08f 100644 --- a/cinder/volume/drivers/remotefs.py +++ b/cinder/volume/drivers/remotefs.py @@ -351,11 +351,6 @@ class RemoteFSDriver(driver.BaseVD): 'count=%d' % block_count, 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): """Creates a QCOW2 file of a given size in GiB.""" diff --git a/etc/cinder/rootwrap.d/volume.filters b/etc/cinder/rootwrap.d/volume.filters index 1826fc216ad..0c80879fdbb 100644 --- a/etc/cinder/rootwrap.d/volume.filters +++ b/etc/cinder/rootwrap.d/volume.filters @@ -129,7 +129,6 @@ netapp_nfs_touch: CommandFilter, touch, root # cinder/volume/drivers/glusterfs.py chgrp: CommandFilter, chgrp, root umount: CommandFilter, umount, root -fallocate: CommandFilter, fallocate, root # cinder/volumes/drivers/hds/hds.py: hus-cmd: CommandFilter, hus-cmd, root