Skip to content

Commit 20f0996

Browse files
committed
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
1 parent ef8f3e9 commit 20f0996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr.sbin/freebsd-update/freebsd-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ install_from_index () {
30003000
if [ -z "${LINK}" ]; then
30013001
# Create a file, without setting flags.
30023002
gunzip < files/${HASH}.gz > ${HASH}
3003-
install -S -o ${OWNER} -g ${GROUP} \
3003+
install -o ${OWNER} -g ${GROUP} \
30043004
-m ${PERM} ${HASH} ${BASEDIR}/${FPATH}
30053005
rm ${HASH}
30063006
else

0 commit comments

Comments
 (0)