From 921bf145a65a13f75a2e8636a59ec2e40f73a1d5 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 20 Sep 2016 04:52:01 +0000 Subject: [PATCH] Stop appending "noatime" in the autofs -media map, and instead add it to auto_master, since all filesystems seem to support it. It's cleaner this way, and easier to customize. MFC after: 1 month --- etc/auto_master | 2 +- etc/autofs/special_media | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/auto_master b/etc/auto_master index 255b7f861b84..55ee99172ea0 100644 --- a/etc/auto_master +++ b/etc/auto_master @@ -5,5 +5,5 @@ /net -hosts -nobrowse,nosuid,intr # When using the -media special map, make sure to edit devd.conf(5) # to move the call to "automount -c" out of the comments section. -#/media -media -nosuid +#/media -media -nosuid,noatime #/- -noauto diff --git a/etc/autofs/special_media b/etc/autofs/special_media index 86824b62f10e..a9c4b1b2f018 100755 --- a/etc/autofs/special_media +++ b/etc/autofs/special_media @@ -41,7 +41,7 @@ print_map_entry() { case "${_fstype}" in "ntfs") if [ -f "/usr/local/bin/ntfs-3g" ]; then - echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid,noatime :/dev/${_p}" + echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}" else /usr/bin/logger -p info -t "special_media[$$]" \ "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-ntfs first" @@ -49,7 +49,7 @@ print_map_entry() { fi ;; "ext2fs" | "msdosfs" | "ufs") - echo "-fstype=${_fstype},nosuid,noatime,async :/dev/${_p}" + echo "-fstype=${_fstype},nosuid,async :/dev/${_p}" ;; *) echo "-fstype=${_fstype},nosuid :/dev/${_p}"