Make autofs use the "noatime" flag for msdosfs, ntfs, and ufs

filesystems mounted on /media.

MFC after:	1 month
This commit is contained in:
trasz 2016-09-19 08:55:36 +00:00
parent 20190fc6be
commit e5253222e9

View File

@ -40,14 +40,14 @@ print_map_entry() {
if [ "${_fstype}" = "ntfs" ]; then
if [ -f "/usr/local/bin/ntfs-3g" ]; then
echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}"
echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid,noatime :/dev/${_p}"
else
/usr/bin/logger -p info -t "special_media[$$]" \
"Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-ntfs first"
exit 1
fi
elif [ "${_fstype}" = "msdosfs" -o "${_fstype}" = "ufs" ]; then
echo "-fstype=${_fstype},nosuid,async :/dev/${_p}"
echo "-fstype=${_fstype},nosuid,noatime,async :/dev/${_p}"
else
echo "-fstype=${_fstype},nosuid :/dev/${_p}"
fi