Author: trasz
Date: Tue Sep 20 04:52:01 2016
New Revision: 306011
URL: https://svnweb.freebsd.org/changeset/base/306011

Log:
  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

Modified:
  head/etc/auto_master
  head/etc/autofs/special_media

Modified: head/etc/auto_master
==============================================================================
--- head/etc/auto_master        Tue Sep 20 04:50:53 2016        (r306010)
+++ head/etc/auto_master        Tue Sep 20 04:52:01 2016        (r306011)
@@ -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

Modified: head/etc/autofs/special_media
==============================================================================
--- head/etc/autofs/special_media       Tue Sep 20 04:50:53 2016        
(r306010)
+++ head/etc/autofs/special_media       Tue Sep 20 04:52:01 2016        
(r306011)
@@ -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}" 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to