https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343
Bug ID: 260343
Summary: NFS client does not respect RLIMIT_FSIZE
Product: Base System
Version: 13.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severi
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343
--- Comment #1 from Rick Macklem ---
Yep. I suppose vn_rlimit_fsize() should be called in
nfs_allocate().
It should also be added to vop_stdallocate() to be consistent
w.r.t. its use.
(Note that VOP_SETATTR() of size does not check it and
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343
--- Comment #2 from Alan Somers ---
Isn't vop_stdallocate covered by the call to VOP_WRITE, which checks
RLIMIT_FSIZE? Or are you concerned that RLIMIT_FSIZE needs to be checked
before vop_stdallocate's loop begins?
Bug 164793 describes R
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343
--- Comment #3 from Rick Macklem ---
Yes, I just noticed that vop_stdallocate() uses VOP_WRITE(),
so it does get checked.
I'll add it to nfs_allocate().
(I suspect long ago that VOP_SETATTR() of size was exempt
because it does not alloca
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260343
Rick Macklem changed:
What|Removed |Added
Status|New |Open
Assignee|b...@freebs