Page MenuHomeFreeBSD

nextboot: Smarter warning about deleting nextboot
ClosedPublic

Authored by imp on Jan 11 2025, 5:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 4, 12:20 PM
Unknown Object (File)
Tue, Mar 4, 4:44 AM
Unknown Object (File)
Fri, Feb 28, 11:05 PM
Unknown Object (File)
Fri, Feb 28, 10:32 AM
Unknown Object (File)
Tue, Feb 25, 4:17 PM
Unknown Object (File)
Tue, Feb 25, 10:14 AM
Unknown Object (File)
Feb 10 2025, 2:55 AM
Unknown Object (File)
Feb 5 2025, 9:25 AM
Subscribers

Details

Summary

Read only filesystems always error when trying to remove something
with EROFS. However, that's true even if the file isn't there. The
code assumed it would always get a ENOENT if the file wasn't there,
but produced a gross message on read only systems. This message was
harmless, but annoying. Instead, stat the file first and return if
it's already not there.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 11 2025, 5:45 AM
imp created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Jan 14 2025, 5:54 PM
This revision was automatically updated to reflect the committed changes.