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
Unknown Object (File)
Sun, Sep 21, 1:30 AM
Unknown Object (File)
Sep 10 2025, 8:48 AM
Unknown Object (File)
Sep 5 2025, 6:01 PM
Unknown Object (File)
Aug 9 2025, 7:29 AM
Unknown Object (File)
Aug 2 2025, 5:11 AM
Unknown Object (File)
Jul 2 2025, 1:18 PM
Unknown Object (File)
Jul 1 2025, 1:12 PM
Unknown Object (File)
Jun 23 2025, 2:44 PM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable