FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-03-2011, 05:50 AM
Ales Kozumplik
 
Default Gotta catch 'em all parted exceptions.

Resolves: rhbz#680248
---
storage/devicetree.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 5c213ff..c9f84cb 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1271,7 +1271,7 @@ class DeviceTree(object):
try:
partitions_paths = [p.path
for p in parted.Disk(device=parted.Device(path=path)).parti tions]
- except (_ped.IOException, _ped.DeviceException) as e:
+ except (_ped.IOException, _ped.DeviceException, _ped.DiskLabelException) as e:
log.error("Parted error scanning partitions on %s:" % path)
log.error(str(e))
# slice off the "/dev/" part, lvm filter cares only about the rest
--
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-03-2011, 02:52 PM
Chris Lumens
 
Default Gotta catch 'em all parted exceptions.

> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index 5c213ff..c9f84cb 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1271,7 +1271,7 @@ class DeviceTree(object):
> try:
> partitions_paths = [p.path
> for p in parted.Disk(device=parted.Device(path=path)).parti tions]
> - except (_ped.IOException, _ped.DeviceException) as e:
> + except (_ped.IOException, _ped.DeviceException, _ped.DiskLabelException) as e:
> log.error("Parted error scanning partitions on %s:" % path)
> log.error(str(e))
> # slice off the "/dev/" part, lvm filter cares only about the rest

Once you have blocker-+ set, ACK. This looks good for master too.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org