[PATCH] parted.PartedDisk can throw IOExceptions too (#573539)

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

 



This gets triggered now that we run it on partitions and lv's too to
detect disk label formats on non disks.

This patch is intended for both master and f13-branch.
---
 storage/formats/disklabel.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
index 1a9d066..62fde7e 100644
--- a/storage/formats/disklabel.py
+++ b/storage/formats/disklabel.py
@@ -130,7 +130,7 @@ class DiskLabel(DeviceFormat):
             if self.exists:
                 try:
                     self._partedDisk = parted.Disk(device=self.partedDevice)
-                except _ped.DiskLabelException as e:
+                except (_ped.DiskLabelException, IOException) as e:
                     raise InvalidDiskLabelError()
 
                 if self._partedDisk.type == "loop":
-- 
1.7.0

_______________________________________________
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