Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 08:55:36 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305969 - head/etc/autofs
Message-ID:  <201609190855.u8J8taOh069071@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Sep 19 08:55:36 2016
New Revision: 305969
URL: https://svnweb.freebsd.org/changeset/base/305969

Log:
  Make autofs use the "noatime" flag for msdosfs, ntfs, and ufs
  filesystems mounted on /media.
  
  MFC after:	1 month

Modified:
  head/etc/autofs/special_media

Modified: head/etc/autofs/special_media
==============================================================================
--- head/etc/autofs/special_media	Mon Sep 19 08:51:27 2016	(r305968)
+++ head/etc/autofs/special_media	Mon Sep 19 08:55:36 2016	(r305969)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609190855.u8J8taOh069071>