From nobody Tue Jun 04 11:37:31 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VtpVM70b2z5NJ8P; Tue, 04 Jun 2024 11:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VtpVM3qrvz4Qbw; Tue, 4 Jun 2024 11:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717501051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CvsJAlDb73KHdcSMsi/BGiqpMjh69ehsFBDyxeFyzjQ=; b=ATEj3g1Tff05ZO1n+xHjGIIThD16KQo5ZdiSWxwS8J43UFEUdv55EZndaMrtB9jpp3EBvc V5WEzUS5NdHWgN7PNP+y7IWurBbwOBUpGzEDEbHXrFLN/Qhe72SIzrue9fQU4nL8mi3Zni JuQD8tlqt86akHt44KkLKowwE85jhhA7DQlXM9RAedatF0+3nbsQ1ZWGMYn1vQpp5ZsxJU l4tetqeG2JszIoPeMVeY8uemZE/TzToxIe+Qt9CBSqzmjFU2M2kvZ3NkpNFCfKlp3yYiT0 VN+krHUSXPRVQefSzS0yUcmtNFdRtsTXKEa3mEd9+uME+6X3b5sHLqBxWK/wpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717501051; a=rsa-sha256; cv=none; b=CbcxZK5ySM6+Vy8dvHw/gIxO50kPxBIk+X7JqtqpHxbvEISItPS3uGbQbBMp/2NSasGGaI 7TWtWABaAIh/pvxVr+g/dNHBeVLuFy9beioRNd93/e2850uexc0p+RP0cSIjT2b1RDzQ9O lTcbt5//XmUZfABo+qiNfEbw06/wBAKbySoqjj2bRnFzdficOmBbaVVEk4wDv8z4MhC55d 3Hwa89rRFINBpIKk+wxGdbnn1ncaq2DrIV7pmSMu3eJD7S6yfrtM0qYdSF6CS4wXb8hwom PaWzFLhvQX8rzJe24ACBMkqfIWl9FOqhn1nJs5z5XPHRoNcq0fmbYZ1zCcJodw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717501051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CvsJAlDb73KHdcSMsi/BGiqpMjh69ehsFBDyxeFyzjQ=; b=Q1X1Y0r8+uF6OGL/VDe32R+kZRnSUGor9LSbQWQr7DjbrN5Nk3TV81p55XU5AUSG4aVXLa G810dlDMH1tjsy0It380GjL7BOHXQMkiV5/H5zYevR8q8yCLT0cEI3mWBHM1/jzOEs6XOl fGqQEXgjuuO8VPqQop8c6sJ5cgsSbQiMdbrmVtL9hzxMsn27jwYS1mIS0f2G9JgtERFQgL BWlrtN465m0I5iDBGEFHKP4BlXwNB1I8FZza4rkuwacsqt5SKtxDuIzO/MBqmOCGb4+nKf D/IjO7T3hDql0xzFNsfbO1AB1eSJkmh0SUs3sFxgykHN5BhxbflOuBQUiTQsDg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VtpVM3RjbzHRZ; Tue, 4 Jun 2024 11:37:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 454BbVOC012421; Tue, 4 Jun 2024 11:37:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 454BbV8B012418; Tue, 4 Jun 2024 11:37:31 GMT (envelope-from git) Date: Tue, 4 Jun 2024 11:37:31 GMT Message-Id: <202406041137.454BbV8B012418@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: b6e19aabce32 - stable/14 - autofs: media: Always use sync option for fat* List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b6e19aabce32d8699786dc377d71a2af89c40db9 Auto-Submitted: auto-generated The branch stable/14 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=b6e19aabce32d8699786dc377d71a2af89c40db9 commit b6e19aabce32d8699786dc377d71a2af89c40db9 Author: Emmanuel Vadot AuthorDate: 2023-12-01 09:27:59 +0000 Commit: Emmanuel Vadot CommitDate: 2024-06-04 11:37:07 +0000 autofs: media: Always use sync option for fat* Users of autofs for removable media expect to be able to copy files and directly remove the media without having the need to call sync(8) or umount(8). Only do that for fat/ntfs filesystems. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D42494 Reviewed by: rew (older version) (cherry picked from commit 094abb6fb41c07c0266a5cae84a7439289a978e9) --- usr.sbin/autofs/autofs/special_media | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.sbin/autofs/autofs/special_media b/usr.sbin/autofs/autofs/special_media index 33fa4544d028..b397a8889623 100755 --- a/usr.sbin/autofs/autofs/special_media +++ b/usr.sbin/autofs/autofs/special_media @@ -40,7 +40,7 @@ print_map_entry() { case "${_fstype}" in "exfat") if [ -f "/usr/local/sbin/mount.exfat" ]; then - echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype} :/dev/${_p}" + echo "-mountprog=/usr/local/sbin/mount.exfat,fstype=${_fstype},sync :/dev/${_p}" else /usr/bin/logger -p info -t "special_media[$$]" \ "Cannot mount ${_fstype} formatted device /dev/${_p}: Install sysutils/fusefs-exfat first" @@ -49,14 +49,17 @@ print_map_entry() { ;; "ntfs") if [ -f "/usr/local/bin/ntfs-3g" ]; then - echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype} :/dev/${_p}" + echo "-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},sync :/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 ;; - "ext2fs" | "msdosfs") + "msdosfs") + echo "-fstype=${_fstype},sync :/dev/${_p}" + ;; + "ext2fs") echo "-fstype=${_fstype},async :/dev/${_p}" ;; *)