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 User

 
 
LinkBack Thread Tools
 
Old 03-11-2009, 04:19 PM
Joel Granados Moreno
 
Default pyparted changed the raised on disks whitout a label.

---
device.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/device.py b/device.py
index 8a6d0d9..f5ee2dc 100644
--- a/device.py
+++ b/device.py
@@ -513,12 +513,13 @@ class MultiPath:
def buildPartMaps(self):
from maps import PartitionDeviceMap as _PartitionDeviceMap
import parted as _parted
+ import _ped

dev = self.PedDevice
dev.open()
try:
disk = _parted.Disk(dev)
- except _parted.DiskException, msg:
+ except (_ped.DiskLabelException,_parted.DiskException), msg:
dev.close()
del dev
return
@@ -538,6 +539,7 @@ class MultiPath:
del dev
del _PartitionDeviceMap
del _parted
+ del _ped

def buildParts(self):
import dm as _dm
@@ -756,12 +758,14 @@ class RaidSet:
def buildParts(self):
from maps import PartitionDeviceMap as _PartitionDeviceMap
import parted as _parted
+ import _ped

dev = self.PedDevice
dev.open()
try:
disk = _parted.Disk(device=dev)
- except (_parted.DiskException,_parted.IOException), msg:
+ except (_ped.DiskLabelException,
+ _parted.DiskException,_parted.IOException), msg:
dev.close()
del dev
return
@@ -782,6 +786,7 @@ class RaidSet:
del dev
del _PartitionDeviceMap
del _parted
+ del _ped

def removeMemberParts(self):
for m in self.members:
--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-11-2009, 04:25 PM
David Lehman
 
Default pyparted changed the raised on disks whitout a label.

Looks good to me.

On Wed, 2009-03-11 at 18:19 +0100, Joel Granados Moreno wrote:
> ---
> device.py | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/device.py b/device.py
> index 8a6d0d9..f5ee2dc 100644
> --- a/device.py
> +++ b/device.py
> @@ -513,12 +513,13 @@ class MultiPath:
> def buildPartMaps(self):
> from maps import PartitionDeviceMap as _PartitionDeviceMap
> import parted as _parted
> + import _ped
>
> dev = self.PedDevice
> dev.open()
> try:
> disk = _parted.Disk(dev)
> - except _parted.DiskException, msg:
> + except (_ped.DiskLabelException,_parted.DiskException), msg:
> dev.close()
> del dev
> return
> @@ -538,6 +539,7 @@ class MultiPath:
> del dev
> del _PartitionDeviceMap
> del _parted
> + del _ped
>
> def buildParts(self):
> import dm as _dm
> @@ -756,12 +758,14 @@ class RaidSet:
> def buildParts(self):
> from maps import PartitionDeviceMap as _PartitionDeviceMap
> import parted as _parted
> + import _ped
>
> dev = self.PedDevice
> dev.open()
> try:
> disk = _parted.Disk(device=dev)
> - except (_parted.DiskException,_parted.IOException), msg:
> + except (_ped.DiskLabelException,
> + _parted.DiskException,_parted.IOException), msg:
> dev.close()
> del dev
> return
> @@ -782,6 +786,7 @@ class RaidSet:
> del dev
> del _PartitionDeviceMap
> del _parted
> + del _ped
>
> def removeMemberParts(self):
> for m in self.members:

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-11-2009, 06:49 PM
Hans de Goede
 
Default pyparted changed the raised on disks whitout a label.

David Lehman wrote:

Looks good to me.



Looks good to me too

Regards,

Hans


On Wed, 2009-03-11 at 18:19 +0100, Joel Granados Moreno wrote:

---
device.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/device.py b/device.py
index 8a6d0d9..f5ee2dc 100644
--- a/device.py
+++ b/device.py
@@ -513,12 +513,13 @@ class MultiPath:
def buildPartMaps(self):
from maps import PartitionDeviceMap as _PartitionDeviceMap
import parted as _parted
+ import _ped

dev = self.PedDevice

dev.open()
try:
disk = _parted.Disk(dev)
- except _parted.DiskException, msg:
+ except (_ped.DiskLabelException,_parted.DiskException), msg:
dev.close()
del dev
return
@@ -538,6 +539,7 @@ class MultiPath:
del dev
del _PartitionDeviceMap
del _parted
+ del _ped

def buildParts(self):

import dm as _dm
@@ -756,12 +758,14 @@ class RaidSet:
def buildParts(self):
from maps import PartitionDeviceMap as _PartitionDeviceMap
import parted as _parted
+ import _ped

dev = self.PedDevice

dev.open()
try:
disk = _parted.Disk(device=dev)
- except (_parted.DiskException,_parted.IOException), msg:
+ except (_ped.DiskLabelException,
+ _parted.DiskException,_parted.IOException), msg:
dev.close()
del dev
return
@@ -782,6 +786,7 @@ class RaidSet:
del dev
del _PartitionDeviceMap
del _parted
+ del _ped

def removeMemberParts(self):

for m in self.members:


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


_______________________________________________
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 01:16 AM.

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