Imagebackend should call processutils.execute directly.
What it says on the tin. Change-Id: I43de49851d435e2eb62f6806507f0e68cd690d2c
This commit is contained in:
parent
f572527d2b
commit
d51e186945
@ -250,7 +250,7 @@ class Image(object):
|
||||
|
||||
if (self.preallocate and self._can_fallocate() and
|
||||
os.access(self.path, os.W_OK)):
|
||||
utils.execute('fallocate', '-n', '-l', size, self.path)
|
||||
processutils.execute('fallocate', '-n', '-l', size, self.path)
|
||||
|
||||
def _can_fallocate(self):
|
||||
"""Check once per class, whether fallocate(1) is available,
|
||||
|
Loading…
Reference in New Issue
Block a user