[PATCH] Prevent duplicate snapshot accounting.
Samantha N. Bueno
sbueno+anaconda at redhat.com
Fri Sep 5 19:10:50 UTC 2014
Ack, and thanks.
On Fri, Sep 05, 2014 at 11:21:52AM -0500, David Lehman wrote:
> Related: rhbz#1043916
> ---
> storage/devicetree.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index 4045cdf..83673cc 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1593,6 +1593,9 @@ class DeviceTree(object):
> vg_name, origin_name))
> continue
>
> + if lv_name in origin.snapshots:
> + continue
> +
> log.debug("adding %dMB to %s snapshot total"
> % (lv_sizes[index], origin.name))
> origin.snapshotSpace += lv_sizes[index]
> --
> 1.9.3
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list