Page MenuHomeFreeBSD

add a check for filesize rlimit to nfs_allocate
ClosedPublic

Authored by rmacklem on Dec 13 2021, 10:17 PM.
Tags
None
Referenced Files
F107572304: D33422.diff
Thu, Jan 16, 1:58 AM
Unknown Object (File)
Fri, Dec 20, 1:15 PM
Unknown Object (File)
Fri, Dec 20, 1:04 PM
Unknown Object (File)
Fri, Dec 20, 7:31 AM
Unknown Object (File)
Dec 10 2024, 6:16 PM
Unknown Object (File)
Dec 5 2024, 11:43 AM
Unknown Object (File)
Nov 30 2024, 11:34 PM
Unknown Object (File)
Oct 2 2024, 3:33 AM
Subscribers

Details

Summary

As reported in PR#260343, nfs_allocate() did not check
the filesize rlimit. This patch adds that check.

Test Plan

Tested against a NFSv4.2 server exporting a UFS file
system with Allocate enabled.

Doing posix_fallocate() was tested when both the
limit would not be exceeded and the filesize limit
would be exceeded.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable