From eecc518d6ffcfb759c5b7bac1dc7f7c1604c47e3 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 4 Mar 2009 16:00:03 +0000 Subject: remove extents options on ext4 when updating fstab --- perl-install/NEWS | 1 + perl-install/fs.pm | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'perl-install') 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, -- cgit v1.2.1