[blivet] Fix DeviceCreateError Could not commit to disk /dev/mapper/mpatha py_ped_disk_commit (#969182) redux
David Lehman
dlehman at redhat.com
Wed Jun 12 02:25:40 UTC 2013
On Tue, 2013-06-11 at 13:09 -0500, Mark Hamzy wrote:
> This fixes bug 969182. If a udev device is created with the watch option, then
> a change uevent is synthesized and we need to wait for things to settle.
Looks okay to me. I'll push this tomorrow.
>
> ---
> blivet/devices.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/blivet/devices.py b/blivet/devices.py
> index 1587b91..b07d372 100644
> --- a/blivet/devices.py
> +++ b/blivet/devices.py
> @@ -1480,6 +1480,11 @@ class PartitionDevice(StorageDevice):
> util.run_program(cmd)
> except OSError as e:
> log.error(str(e))
> + finally:
> + # If a udev device is created with the watch option, then
> + # a change uevent is synthesized and we need to wait for
> + # things to settle.
> + udev_settle()
>
> def _create(self):
> """ Create the device. """
More information about the anaconda-patches
mailing list