mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-15 01:32:04 +03:00
On FreeBSD errno is defined as (* __error()), which means compiler can't say whether two consecutive reads will return the same. And without this knowledge the reported error is formally right. Caching of the errno in local variable fixes the issue. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #17975 |
||
|---|---|---|
| .. | ||
| include | ||
| os | ||
| assert.c | ||
| atomic.c | ||
| backtrace.c | ||
| getexecname.c | ||
| libspl_impl.h | ||
| list.c | ||
| Makefile.am | ||
| mkdirp.c | ||
| page.c | ||
| strlcat.c | ||
| strlcpy.c | ||
| timestamp.c | ||
| tunables.c | ||