Re: [PATCH 2/4] Add support for detecting lvm vorigin snapshot volumes. (#633038)

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

 



> @@ -2133,13 +2152,8 @@ class LVMVolumeGroupDevice(DMDevice):
>          # TODO: just ask lvm if isModified returns False
>  
>          # total the sizes of any LVs
> -        used = 0
> -        size = self.size
> -        log.debug("%s size is %dMB" % (self.name, size))
> -        for lv in self.lvs:
> -            log.debug("lv %s uses %dMB" % (lv.name, lv.vgSpaceUsed))
> -            used += self.align(lv.vgSpaceUsed, roundup=True)
> -
> +        log.debug("%s size is %dMB" % (self.name, self.size))
> +        used = sum(lv.size for lv in self.lvs) + self.snapshotSpace

Don't you want brackets around the list comprehension here?

- Chris

_______________________________________________
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