Argh, I have had one "uid 0 on /: file system full" too many. The problem

is that it doesn't say _what_ did it! (the core dumped console message
is very useful for listing the process name and pid).  This adds similar
information.
This commit is contained in:
Peter Wemm 1996-09-17 14:38:16 +00:00
parent 3a78b059a0
commit 7b8830a51e

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.8 (Berkeley) 2/21/94
* $Id: ffs_alloc.c,v 1.24 1996/05/08 04:29:07 gpalmer Exp $
* $Id: ffs_alloc.c,v 1.25 1996/07/12 04:12:14 bde Exp $
*/
#include "opt_quota.h"
@ -1509,6 +1509,8 @@ ffs_fserr(fs, uid, cp)
u_int uid;
char *cp;
{
struct proc *p = curproc; /* XXX */
log(LOG_ERR, "uid %d on %s: %s\n", uid, fs->fs_fsmnt, cp);
log(LOG_ERR, "pid %d (%s), uid %d on %s: %s\n", p ? p->p_pid : -1,
p ? p->p_comm : "-", uid, fs->fs_fsmnt, cp);
}