[PATCH] Allow resetting partition size to current on-disk size.

Anne Mulhern amulhern at redhat.com
Tue Jan 14 12:37:46 UTC 2014





----- Original Message -----
> From: "David Lehman" <dlehman at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Monday, January 13, 2014 3:24:25 PM
> Subject: [PATCH] Allow resetting partition size to current on-disk size.
> 
> ---
>  blivet/devices.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/blivet/devices.py b/blivet/devices.py
> index 51c10be..659644c 100644
> --- a/blivet/devices.py
> +++ b/blivet/devices.py
> @@ -1243,7 +1243,7 @@ class PartitionDevice(StorageDevice):
>          if not isinstance(newsize, Size):
>              raise ValueError("new size must of type Size")
>  
> -        if newsize != self.currentSize:
> +        if newsize != self.size:
>              # change this partition's geometry in-memory so that other
>              # partitioning operations can complete (e.g., autopart)
>              super(PartitionDevice, self)._setTargetSize(newsize)
> --
> 1.8.1.4
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>
Ack,
(w/ a comment in commit message explaining why previous choice of currentSize was wrong).

- mulhern

 


More information about the anaconda-patches mailing list