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 05-19-2010, 11:57 AM
Hans de Goede
 
Default Don't clear immutable devices (#593642)

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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 00c1986..7346feb 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -322,6 +322,10 @@ def shouldClear(device, clearPartType, clearPartDisks=None):
if device.protected:
return False

+ # Don't clear immutable devices.
+ if device.immutable:
+ return False
+
# TODO: do platform-specific checks on ia64, pSeries, iSeries, mac

return True
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-19-2010, 02:14 PM
Ales Kozumplik
 
Default Don't clear immutable devices (#593642)

On 05/19/2010 01:57 PM, Hans de Goede wrote:

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

+ # Don't clear immutable devices.
+ if device.immutable:
+ return False
+


So that's why the previous patch, nice!

_______________________________________________
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 05:53 PM.

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