Imagebackend should call processutils.execute directly.

What it says on the tin.

Change-Id: I43de49851d435e2eb62f6806507f0e68cd690d2c
This commit is contained in:
Michael Still 2018-11-23 16:06:09 +11:00
parent f572527d2b
commit d51e186945

View File

@ -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,