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)
Sat, May 18, 9:01 AM
Unknown Object (File)
Apr 12 2024, 9:11 PM
Unknown Object (File)
Apr 12 2024, 2:10 PM
Unknown Object (File)
Apr 10 2024, 5:44 PM
Unknown Object (File)
Jan 13 2024, 8:59 PM
Unknown Object (File)
Dec 17 2023, 8:09 AM
Unknown Object (File)
Dec 11 2023, 3:42 PM
Unknown Object (File)
Sep 22 2023, 10:54 PM
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