[rhel7-branch][PATCH] Convert LVM_PE_SIZE to KiB (#1163081)

Anne Mulhern amulhern at redhat.com
Thu Nov 13 12:25:03 UTC 2014





----- Original Message -----
> From: "Vratislav Podzimek" <vpodzime at redhat.com>
> To: anaconda-patches at lists.fedorahosted.org
> Sent: Thursday, November 13, 2014 3:46:56 AM
> Subject: [rhel7-branch][PATCH] Convert LVM_PE_SIZE to KiB (#1163081)
> 
> It is a Size instance not a plain number of MiB now.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  pyanaconda/kickstart.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index 379a573..4122c02 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -1592,7 +1592,7 @@ class
> VolGroupData(commands.volgroup.RHEL7_VolGroupData):
>  
>          if self.pesize == 0:
>              # default PE size requested -- we use blivet's default in KiB
> -            self.pesize = LVM_PE_SIZE * 1024
> +            self.pesize = LVM_PE_SIZE.convertTo("KiB")
>  
>          pesize = Size("%d KiB" % self.pesize)
>          if pesize not in getPossiblePhysicalExtents():
> --
> 1.9.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 

This will work because it doesn't cause the bug fixed in master
blivet commit a3998ea687a96d7f6ca7a019ecae87dcc7b5d0fe to manifest
(because LVM_PE_SIZE current value of 4 MiB is multiple of 1024).

So ack.

- mulhern




More information about the anaconda-patches mailing list