1
0
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:
Edward Tomasz Napierala 2010-05-07 14:30:21 +00:00
parent 8ef48de888
commit dc510c105f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207745

View File

@ -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));
}