From 1c37b9794d9b584318b2320b21cc2f8dd82aa48e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 14 Aug 2007 09:20:11 +0000 Subject: partially revert previous (titi) commit: we do want noatime on laptops, since it's not a performance issue, but really a way to not wake up the hd --- perl-install/fs/mount_options.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 3e692cea5..21e042acd 100644 --- a/perl-install/fs/mount_options.pm +++ b/perl-install/fs/mount_options.pm @@ -198,12 +198,14 @@ sub set_default { $options->{flush} = 1; } - #- relatime (wake up the hd less often / better performances) + if (isTrueFS($part)) { + #- noatime on laptops (do not wake up the hd) + #- otherwise relatime (wake up the hd less often / better performances) #- Do not update inode access times on this #- file system (e.g, for faster access on the #- news spool to speed up news servers). - $options->{relatime} = isTrueFS($part); - + $options->{detect_devices::isLaptop() ? 'noatime': 'relatime'} = 1; + } if ($part->{fs_type} eq 'nfs') { put_in_hash($options, { nosuid => 1, 'rsize=8192,wsize=8192' => 1, soft => 1, -- cgit v1.2.1