Page MenuHomeFreeBSD

install: clarify fsync() used in safe (-S) mode
Needs ReviewPublic

Authored by marck on Apr 21 2023, 7:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 12:28 PM
Unknown Object (File)
Feb 22 2024, 8:14 AM
Unknown Object (File)
Dec 20 2023, 6:44 AM
Unknown Object (File)
Dec 19 2023, 5:56 PM
Unknown Object (File)
Nov 9 2023, 12:06 PM
Unknown Object (File)
Oct 8 2023, 11:01 AM
Unknown Object (File)
Jun 25 2023, 6:42 AM
Unknown Object (File)
May 29 2023, 1:11 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

install(1) uses fsync between writing to temporary file and renaming it to the target;
sometimes this is unclear as install -S could be slow in wdrain state while fsync()ing.

Clarify this moment in the man page a bit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

marck requested review of this revision.Apr 21 2023, 7:21 AM

I think it would be nicer to add an option to do the rename bit but *not* fsync

poudriere is doing -S and it kills i/o perf