[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 1/2] Do not try to teardown a non existing format
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH 1/2] Do not try to teardown a non existing format
- Date: Wed, 15 Apr 2009 15:14:23 -0400
> 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]