Re: [PATCH 1/2] Do not try to teardown a non existing format

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

 



>  storage/devices.py |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/devices.py b/storage/devices.py
> index 0904286..6a8d4a9 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -2024,7 +2024,9 @@ class LVMLogicalVolumeDevice(DMDevice):
>          if not self.exists:
>              raise DeviceError("device has not been created")
>  
> -        self.format.teardown()
> +        if self.format.exists:
> +            self.format.teardown()
> +
>          udev_settle(timeout=10)
>          lvm.lvresize(self.vg.name, self._name, self.size)

This one looks obviously right to me.  I'm not sure about the
ramifications of the second patch, though.

- 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