Page MenuHomeFreeBSD

fspacectl(2): Changes on rmsr.r_offset's minimum value returned
ClosedPublic

Authored by khng on Aug 25 2021, 12:08 PM.
Tags
None
Referenced Files
F163387440: D31677.diff
Wed, Jul 22, 6:21 PM
Unknown Object (File)
Tue, Jul 21, 7:07 AM
Unknown Object (File)
Thu, Jul 16, 2:40 PM
Unknown Object (File)
Sun, Jul 12, 4:22 AM
Unknown Object (File)
May 20 2026, 6:37 PM
Unknown Object (File)
May 5 2026, 11:34 PM
Unknown Object (File)
Apr 30 2026, 3:19 PM
Unknown Object (File)
Apr 30 2026, 5:35 AM
Subscribers

Details

Summary

rmsr.r_offset now is set to rqsr.r_offset plus the number of bytes
zeroed before hitting the end-of-file. After this change rmsr.r_offset
no longer contains the EOF when the requested operation range is
completely beyond the end-of-file. Instead in such case rmsr.r_offset is
equal to rqsr.r_offset. Callers can obtain the number of bytes zeroed
by subtracting rqsr.r_offset from rmsr.r_offset.

Sponsored by: The FreeBSD Foundation

Diff Detail

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