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)
Tue, Jun 16, 12:24 PM
Unknown Object (File)
Fri, Jun 12, 12:26 PM
Unknown Object (File)
Thu, Jun 11, 8:39 PM
Unknown Object (File)
May 13 2026, 10:31 AM
Unknown Object (File)
May 13 2026, 10:31 AM
Unknown Object (File)
May 13 2026, 10:31 AM
Unknown Object (File)
May 13 2026, 5:34 AM
Unknown Object (File)
May 4 2026, 6:28 AM
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