Page MenuHomeFreeBSD

fsck_ffs: make rwerror() report errno.
AbandonedPublic

Authored by trasz on Dec 15 2018, 11:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 1:52 AM
Unknown Object (File)
Oct 1 2024, 5:04 AM
Unknown Object (File)
Sep 26 2024, 6:37 AM
Unknown Object (File)
Sep 19 2024, 2:14 AM
Unknown Object (File)
Sep 10 2024, 3:32 AM
Unknown Object (File)
Sep 8 2024, 7:02 PM
Unknown Object (File)
Sep 8 2024, 3:50 PM
Unknown Object (File)
Sep 1 2024, 5:21 PM
Subscribers

Details

Reviewers
kib
mckusick
Summary

Make rwerror() report errno.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21587
Build 20890: arc lint + arc unit

Event Timeline

sbin/fsck_ffs/fsutil.c
390

This is not going to work.

E.g. the printf() above can obliterate errno.
Similarly, the cases of short or zero-length writes do not set errno at all.