git: 20f0996700a8 - main - freebsd-update: Do not fsync
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Aug 2025 23:24:59 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=20f0996700a8e60780931e7fde65899040465f4e
commit 20f0996700a8e60780931e7fde65899040465f4e
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-08-15 18:04:15 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-08-15 23:23:36 +0000
freebsd-update: Do not fsync
Fsyncing each file we install slows us down significantly and adds
little to no safety.
MFC after: 1 week
PR: 287897
---
usr.sbin/freebsd-update/freebsd-update.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index c388e76644dc..81040431ea79 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -3000,7 +3000,7 @@ install_from_index () {
if [ -z "${LINK}" ]; then
# Create a file, without setting flags.
gunzip < files/${HASH}.gz > ${HASH}
- install -S -o ${OWNER} -g ${GROUP} \
+ install -o ${OWNER} -g ${GROUP} \
-m ${PERM} ${HASH} ${BASEDIR}/${FPATH}
rm ${HASH}
else