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
Unknown Object (File)
Tue, May 13, 3:46 PM
Unknown Object (File)
Wed, May 7, 10:54 AM
Unknown Object (File)
Apr 23 2025, 2:21 AM
Unknown Object (File)
Apr 21 2025, 9:41 PM
Unknown Object (File)
Apr 21 2025, 5:27 PM
Unknown Object (File)
Apr 21 2025, 2:37 PM
Unknown Object (File)
Apr 21 2025, 1:55 PM
Unknown Object (File)
Apr 21 2025, 10:50 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