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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 05-07-2010, 06:44 AM
David Lehman
 
Default Remove partitions before unpartitoned non-partition devices. (#588597)

---
storage/devicetree.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 03827df..e14551e 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -535,6 +535,14 @@ class DeviceTree(object):
elif isinstance(a2.device, PartitionDevice) and
a1.device.partitioned:
ret = -1
+ # remove partitions before unpartitioned non-partition
+ # devices
+ elif isinstance(a1.device, PartitionDevice) and
+ not isinstance(a2.device, PartitionDevice):
+ ret = 1
+ elif isinstance(a2.device, PartitionDevice) and
+ not isinstance(a1.device, PartitionDevice):
+ ret = -1
else:
ret = 0
elif a1.isDestroy():
--
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-07-2010, 06:47 AM
Jesse Keating
 
Default Remove partitions before unpartitoned non-partition devices. (#588597)

On Fri, 2010-05-07 at 01:44 -0500, David Lehman wrote:
> [PATCH][all branches] Remove partitions before unpartitoned
> non-partition devices. (#588597)

+1, I've tested this and it fixes the bug. However this commit message
should probably be framed, as it just about describes this entire
release.

--
Jesse Keating
Fedora -- Freedom˛ is a feature!
identi.ca: http://identi.ca/jkeating
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-07-2010, 06:49 AM
David Lehman
 
Default Remove partitions before unpartitoned non-partition devices. (#588597)

My commit message is obviously backwards. Fixed locally.

On Fri, 2010-05-07 at 01:44 -0500, David Lehman wrote:
> ---
> storage/devicetree.py | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index 03827df..e14551e 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -535,6 +535,14 @@ class DeviceTree(object):
> elif isinstance(a2.device, PartitionDevice) and
> a1.device.partitioned:
> ret = -1
> + # remove partitions before unpartitioned non-partition
> + # devices
> + elif isinstance(a1.device, PartitionDevice) and
> + not isinstance(a2.device, PartitionDevice):
> + ret = 1
> + elif isinstance(a2.device, PartitionDevice) and
> + not isinstance(a1.device, PartitionDevice):
> + ret = -1
> else:
> ret = 0
> elif a1.isDestroy():


_______________________________________________
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 02:43 AM.

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