Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2017 20:37:47 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r318490 - stable/11/etc/autofs
Message-ID:  <201705182037.v4IKblU3017217@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Thu May 18 20:37:47 2017
New Revision: 318490
URL: https://svnweb.freebsd.org/changeset/base/318490

Log:
  MFC r317803:
  
  Enable automounting of exFAT media.
  
  With fstyp(8) being updated to detect exfat in base r312003, it seems
  like a good time to add support for auto-mounting SDXC cards -- which
  use exfat by default.
  
  The user will need to locally compile and install sysutils/fusefs-exfat
  for this to succeed; logs a message to that effect when not installed.
  
  PR:		218743
  Submitted by:	eborisch+FreeBSD@gmail.com

Modified:
  stable/11/etc/autofs/special_media
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/autofs/special_media
==============================================================================
--- stable/11/etc/autofs/special_media	Thu May 18 20:36:07 2017	(r318489)
+++ stable/11/etc/autofs/special_media	Thu May 18 20:37:47 2017	(r318490)
@@ -39,6 +39,15 @@ print_map_entry() {
 	_p="$2"
 
 	case "${_fstype}" in
+	"exfat")
+		if [ -f "/usr/local/sbin/mount.exfat" ]; then
+			echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype},nosuid	:/dev/${_p}" 
+		else
+			/usr/bin/logger -p info -t "special_media[$$]" \
+			    "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-exfat first"
+			exit 1
+		fi
+		;;
 	"ntfs")
 		if [ -f "/usr/local/bin/ntfs-3g" ]; then
 			echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid	:/dev/${_p}" 



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