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)
Oct 2 2024, 3:33 AM
Unknown Object (File)
Sep 24 2024, 9:43 PM
Unknown Object (File)
Sep 23 2024, 7:58 PM
Unknown Object (File)
Sep 23 2024, 12:09 PM
Unknown Object (File)
Sep 19 2024, 10:53 AM
Unknown Object (File)
Sep 19 2024, 3:06 AM
Unknown Object (File)
Sep 8 2024, 1:16 AM
Unknown Object (File)
Sep 6 2024, 11:13 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