summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-03-04 16:00:03 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-03-04 16:00:03 +0000
commiteecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3 (patch)
tree28363838fefa6d57c3bd45521308235377075c5e
parentce0442c03906c3280e0efbc56d247012a6316ae9 (diff)
downloaddrakx-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar
drakx-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.gz
drakx-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.bz2
drakx-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.tar.xz
drakx-eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3.zip
remove extents options on ext4 when updating fstab
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/fs.pm4
2 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 71bde1772..8b5596c8d 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -8,6 +8,7 @@
- localdrake/finish-install:
o fix reading default input method setting
- list ath9k, rt2860, rt2870 and rtl8187se in wireless modules category
+- remove extents options on ext4 when updating fstab
Version 11.91 - 25 February 2009
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index d95890cb3..61947c0a8 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -72,6 +72,10 @@ sub read_fstab {
}
s/\\040/ /g foreach $mntpoint, $dev, $options;
+ if ($fs_type eq 'ext4') {
+ $options = join(",", grep { !/extents/ } split(',', $options)) || 'defaults';
+ }
+
my $h = {
mntpoint => $mntpoint, fs_type => $fs_type,
options => $options, comment => $comment,