Add a resizeArgs property for Ext2FS, make sure the size gets the 'M' suffix and the arguments are in the right order. Make sure the size gets the 'm' suffix in the BtrFS.resizeArgs property. --- storage/formats/fs.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/storage/formats/fs.py b/storage/formats/fs.py index ab01de4..ca0e57a 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -815,6 +815,11 @@ class Ext2FS(FS): def isDirty(self): return isys.ext2IsDirty(self.device) + @property + def resizeArgs(self): + argv = ["-p", self.device, "%dM" % (self.targetSize,)] + return argv + register_device_format(Ext2FS) @@ -897,7 +902,7 @@ class BTRFS(FS): @property def resizeArgs(self): - argv = ["-r", "%d" % (self.targetSize,), self.device] + argv = ["-r", "%dm" % (self.targetSize,), self.device] return argv @property -- 1.6.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list