HomeFreeBSD

fusefs: improve the short read fix from r349279

Description

fusefs: improve the short read fix from r349279

VOP_GETPAGES intentionally tries to read beyond EOF, so fuse_read_biobackend
can't rely on bp->b_resid > 0 indicating a short read. And adjusting
bp->b_count after a short read seems to cause some sort of resource leak.
Instead, store the shortfall in the bp->b_fsprivate1 field.

Sponsored by: The FreeBSD Foundation

Details

Provenance
asomersAuthored on
Parents
rS349331: Clean out duplicate definitions of TCP macros also found in netinet/tcp.h.
Branches
Unknown
Tags
Unknown