From 97b738004879841701f9d7f6e34b047c811809f4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 14 Aug 2007 09:48:13 +0000 Subject: - fix handling relatime vs noatime (esp. relatime is not the opposite of atime, noatime is) - fix titypo: norelatime doesn't exist --- perl-install/fs/mount_options.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/fs/mount_options.pm') 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., -- cgit v1.2.1