Re: [PATCH 12/13] Add resizeArgs for Ext2FS and fix it for BtrFS.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2009-03-13 at 18:09 -1000, David Cantrell wrote:
> 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.

Looks good.

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux