summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-22 18:19:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-22 18:19:59 +0000
commit16589d408016879177d50c634db487e7454bed84 (patch)
tree89388185711b9e8222511b975c2884f83df298cd /perl-install/fs.pm
parent489602da200d2bf800636fe7338b8fb5f0025d14 (diff)
downloaddrakx-backup-do-not-use-16589d408016879177d50c634db487e7454bed84.tar
drakx-backup-do-not-use-16589d408016879177d50c634db487e7454bed84.tar.gz
drakx-backup-do-not-use-16589d408016879177d50c634db487e7454bed84.tar.bz2
drakx-backup-do-not-use-16589d408016879177d50c634db487e7454bed84.tar.xz
drakx-backup-do-not-use-16589d408016879177d50c634db487e7454bed84.zip
- cleanup noatime option setting
- cleanup exec option setting (must noexec => 0 instead of exec => 1)
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index fcf933adf..8fb7d4896 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -334,6 +334,13 @@ sub set_default_options {
$options->{sync} = 1;
}
+ if (isTrueFS($part)) {
+ #- noatime on laptops (do not wake up the hd)
+ #- 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->{noatime} = detect_devices::isLaptop();
+ }
if (isNfs($part)) {
put_in_hash($options, {
nosuid => 1, 'rsize=8192,wsize=8192' => 1,
@@ -342,7 +349,7 @@ sub set_default_options {
if (isFat($part) || $is_auto) {
put_in_hash($options, {
- user => 1, exec => 1,
+ user => 1, noexec => 0,
}) if !exists $part->{rootDevice}; # partition means no removable media
put_in_hash($options, {
@@ -353,7 +360,7 @@ sub set_default_options {
put_in_hash($options, { 'iocharset=' => $iocharset });
}
if (isThisFs('iso9660', $part) || $is_auto) {
- put_in_hash($options, { user => 1, exec => 1, });
+ put_in_hash($options, { user => 1, noexec => 0, });
}
if (isThisFs('reiserfs', $part)) {
$options->{notail} = 1;