mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Enforce RLIMIT_FSIZE in ZFS.
Reviewed by: pjd@
This commit is contained in:
parent
8ef48de888
commit
dc510c105f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207745
@ -3977,6 +3977,9 @@ zfs_freebsd_write(ap)
|
||||
} */ *ap;
|
||||
{
|
||||
|
||||
if (vn_rlimit_fsize(ap->a_vp, ap->a_uio, ap->a_uio->uio_td))
|
||||
return (EFBIG);
|
||||
|
||||
return (zfs_write(ap->a_vp, ap->a_uio, ap->a_ioflag, ap->a_cred, NULL));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user