Give the user a clue as to which process hit maxfiles.

MFC after:	1 week
Sponsored by:	Panzura
This commit is contained in:
Julian Elischer 2016-09-24 22:56:13 +00:00
parent 970fe0938e
commit 1c8260b61d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306306

View File

@ -1761,8 +1761,8 @@ falloc_noinstall(struct thread *td, struct file **resultfp)
priv_check(td, PRIV_MAXFILES) != 0) ||
openfiles >= maxfiles) {
if (ppsratecheck(&lastfail, &curfail, 1)) {
printf("kern.maxfiles limit exceeded by uid %i, "
"please see tuning(7).\n", td->td_ucred->cr_ruid);
printf("kern.maxfiles limit exceeded by uid %i, (%s) "
"please see tuning(7).\n", td->td_ucred->cr_ruid, td->td_proc->p_comm);
}
return (ENFILE);
}