summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-14 09:48:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-14 09:48:13 +0000
commit97b738004879841701f9d7f6e34b047c811809f4 (patch)
treee241dd52e9cf8b758bc971c05ea74c73d5a91a88 /perl-install/fs
parent1c37b9794d9b584318b2320b21cc2f8dd82aa48e (diff)
downloaddrakx-97b738004879841701f9d7f6e34b047c811809f4.tar
drakx-97b738004879841701f9d7f6e34b047c811809f4.tar.gz
drakx-97b738004879841701f9d7f6e34b047c811809f4.tar.bz2
drakx-97b738004879841701f9d7f6e34b047c811809f4.tar.xz
drakx-97b738004879841701f9d7f6e34b047c811809f4.zip
- fix handling relatime vs noatime
(esp. relatime is not the opposite of atime, noatime is) - fix titypo: norelatime doesn't exist
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/mount_options.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm
index 21e042acd..3bec94ab9 100644
--- a/perl-install/fs/mount_options.pm
+++ b/perl-install/fs/mount_options.pm
@@ -12,7 +12,7 @@ sub list() {
my %non_defaults = (
sync => 'async', noatime => 'atime', noauto => 'auto', ro => 'rw',
user => 'nouser', nodev => 'dev', noexec => 'exec', nosuid => 'suid',
- user_xattr => 'nouser_xattr', relatime => 'atime',
+ user_xattr => 'nouser_xattr',
);
my @user_implies = qw(noexec nodev nosuid);
\%non_defaults, \@user_implies;
@@ -41,6 +41,7 @@ sub unpack {
$non_defaults->{$_} = 1 foreach @$l;
}
+ $non_defaults->{relatime} = 1 if isTrueFS($part);
$non_defaults->{encrypted} = 1;
my $defaults = { reverse %$non_defaults };
@@ -117,7 +118,7 @@ sub help() {
'noatime' => N("Do not update inode access times on this file system
(e.g, for faster access on the news spool to speed up news servers)."),
- 'norelatime' => N("Update inode access times on this filesystem in a more efficient way
+ 'relatime' => N("Update inode access times on this filesystem in a more efficient way
(e.g, for faster access on the news spool to speed up news servers)."),
'noauto' => N("Can only be mounted explicitly (i.e.,