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 03-09-2010, 11:18 PM
David Lehman
 
Default Set up devices using their original formats for certain action types.

Any action that acts on a pre-existing device should set up that
device using the original formats because value of the devices'
format attribute may have changed to represent a format that does
not yet exist.
---
storage/deviceaction.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index dbfaf60..859c0f1 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -309,7 +309,7 @@ class ActionDestroyFormat(DeviceAction):
def execute(self, intf=None):
""" wipe the filesystem signature from the device """
if self.origFormat:
- self.device.setup()
+ self.device.setup(orig=True)
self.origFormat.destroy()
udev_settle()
self.device.teardown()
@@ -344,7 +344,7 @@ class ActionResizeFormat(DeviceAction):
self.device.format.targetSize = newsize

def execute(self, intf=None):
- self.device.setup()
+ self.device.setup(orig=True)
self.device.format.doResize(intf=intf)

def cancel(self):
@@ -363,7 +363,7 @@ class ActionMigrateFormat(DeviceAction):
self.device.format.migrate = True

def execute(self, intf=None):
- self.device.setup()
+ self.device.setup(orig=True)
self.device.format.doMigrate(intf=intf)

def cancel(self):
--
1.6.6

_______________________________________________
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 03:23 AM.

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