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 11-08-2010, 06:33 PM
David Lehman
 
Default Move check for ext2 filesystem journal from FS to Ext2FS.

Even though we only currently support migration of ext[23] we should
keep the ext-specific code out of the base filesystem class.
---
pyanaconda/storage/formats/fs.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index a0f2749..7887bd2 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -387,12 +387,6 @@ class FS(DeviceFormat):
if not os.path.exists(self.device):
raise FSError("device does not exist")

- # if journal already exists skip
- if isys.ext2HasJournal(self.device):
- log.info("Skipping migration of %s, has a journal already."
- % self.device)
- return
-
argv = self._defaultMigrateOptions[:]
argv.append(self.device)
try:
@@ -926,6 +920,12 @@ class Ext2FS(FS):
return msg.strip()

def doMigrate(self, intf=None):
+ # if journal already exists skip
+ if isys.ext2HasJournal(self.device):
+ log.info("Skipping migration of %s, has a journal already."
+ % self.device)
+ return
+
FS.doMigrate(self, intf=intf)
self.tuneFS()

--
1.7.2.3

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

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