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)
Mon, Apr 27, 8:16 AM
Unknown Object (File)
Sat, Apr 11, 1:13 PM
Unknown Object (File)
Tue, Apr 7, 10:33 AM
Unknown Object (File)
Mar 29 2026, 2:36 AM
Unknown Object (File)
Mar 27 2026, 12:36 PM
Unknown Object (File)
Mar 25 2026, 6:07 PM
Unknown Object (File)
Mar 11 2026, 1:33 PM
Unknown Object (File)
Mar 11 2026, 8:26 AM
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