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

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