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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-29-2008, 01:49 PM
Eric Sandeen
 
Default use newer mke2fs arguments for different filesystems

We had been hard-coding various args to mke2fs to try to get
what we wanted, but newer mke2fs supports "-t $TYPE" which
is much simpler, and harder to get wrong.

I must admit to not actually testing this patch, though.

-Eric

Index: anaconda-11.4.1.20/anaconda.spec
================================================== =================
--- anaconda-11.4.1.20.orig/anaconda.spec 2008-07-25 15:20:13.000000000 -0500
+++ anaconda-11.4.1.20/anaconda.spec 2008-07-29 08:46:15.313290988 -0500
@@ -32,12 +32,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version
%define libbdevidver 5.1.2-1
%define rhpxlver 0.25
%define desktopfileutilsver 0.8
+%define e2fsver 1.41.0

BuildRequires: audit-libs-devel
BuildRequires: booty
BuildRequires: bzip2-devel
BuildRequires: device-mapper-devel >= %{dmver}
-BuildRequires: e2fsprogs-devel
+BuildRequires: e2fsprogs-devel >= %{e2fsver}
BuildRequires: elfutils-devel
BuildRequires: gettext >= %{gettextver}
BuildRequires: gtk2-devel
@@ -84,7 +85,7 @@ Requires: system-config-date >= %{syscfg
Requires: device-mapper >= %{dmver}
Requires: device-mapper-libs >= %{dmver}
Requires: dosfstools
-Requires: e2fsprogs
+Requires: e2fsprogs >= %{e2fsver}
%ifarch %{ix86} x86_64 ia64
Requires: dmidecode
%endif
Index: anaconda-11.4.1.20/fsset.py
================================================== =================
--- anaconda-11.4.1.20.orig/fsset.py 2008-07-25 15:20:13.000000000 -0500
+++ anaconda-11.4.1.20/fsset.py 2008-07-29 08:42:36.711291619 -0500
@@ -723,7 +723,7 @@ class ext3FileSystem(extFileSystem):
def __init__(self):
extFileSystem.__init__(self)
self.name = "ext3"
- self.extraFormatArgs = [ "-j" ]
+ self.extraFormatArgs = [ "-t ext3" ]
self.partedFileSystemType = parted.file_system_type_get("ext3")
if flags.cmdline.has_key("ext4"):
self.migratetofs = ['ext4dev']
@@ -757,8 +757,7 @@ class ext4FileSystem(extFileSystem):
extFileSystem.__init__(self)
self.name = "ext4dev"
self.partedFileSystemType = parted.file_system_type_get("ext3")
- # 256-byte inodes are actually default now, but let's be sure.
- self.extraFormatArgs = [ "-j", "-I", "256", "-E", "test_fs" ]
+ self.extraFormatArgs = [ "-t ext4dev" ]

# this is way way experimental at present...
if flags.cmdline.has_key("ext4"):

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

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