Page MenuHomeFreeBSD

nmount: Ignore errors when copying out an error string
ClosedPublic

Authored by markj on Dec 21 2023, 2:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 15, 3:07 PM
Unknown Object (File)
Sun, Mar 15, 8:17 AM
Unknown Object (File)
Thu, Mar 5, 12:01 AM
Unknown Object (File)
Feb 26 2026, 9:08 PM
Unknown Object (File)
Feb 16 2026, 11:33 AM
Unknown Object (File)
Feb 8 2026, 9:16 AM
Unknown Object (File)
Feb 7 2026, 9:32 PM
Unknown Object (File)
Jan 30 2026, 6:33 PM
Subscribers

Details

Summary

In general we copy error strings as part of reporting an error from
lower layers, so if the copyout() fails there's nothing to do since we'd
prefer to preserve the original error.

This is in preparation for annotating copyin() and related functions
with __result_use_check.

Diff Detail

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