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 04-22-2010, 09:21 PM
David Lehman
 
Default Don't try to zero out extended partitions.

---
storage/devices.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 7afb08e..7f1cc0f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1271,9 +1271,10 @@ class PartitionDevice(StorageDevice):
self.disk.format.removePartition(part)
raise

- # Ensure old metadata which lived in freespace so did not get
- # explictly destroyed by a destroyformat action gets wiped
- DeviceFormat(device=self.path, exists=True).destroy()
+ if not self.isExtended:
+ # Ensure old metadata which lived in freespace so did not get
+ # explictly destroyed by a destroyformat action gets wiped
+ DeviceFormat(device=self.path, exists=True).destroy()
except Exception:
raise
else:
--
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-22-2010, 09:26 PM
David Cantrell
 
Default Don't try to zero out extended partitions.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks good. On rhel6-branch, make sure the commit msg references a RHEL-6 BZ,
please.

On Thu, 22 Apr 2010, David Lehman wrote:


---
storage/devices.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 7afb08e..7f1cc0f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1271,9 +1271,10 @@ class PartitionDevice(StorageDevice):
self.disk.format.removePartition(part)
raise

- # Ensure old metadata which lived in freespace so did not get
- # explictly destroyed by a destroyformat action gets wiped
- DeviceFormat(device=self.path, exists=True).destroy()
+ if not self.isExtended:
+ # Ensure old metadata which lived in freespace so did not get
+ # explictly destroyed by a destroyformat action gets wiped
+ DeviceFormat(device=self.path, exists=True).destroy()
except Exception:
raise
else:



- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvQvwEACgkQ5hsjjIy1Vkk03QCgzzJpDtjev3 lHfy7f7G2xdViP
J4cAoPHeFw4rakCyIa+ql5KCaaKK/iEx
=1MFr
-----END PGP SIGNATURE-----

_______________________________________________
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 06:21 AM.

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