diff options
author | peter <peter@FreeBSD.org> | 1996-09-17 14:38:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-17 14:38:16 +0000 |
commit | 66b8e001744b6aa39013edd161ca16ec2df1b393 (patch) | |
tree | 45f909a969314e89475b533994800ca5229af8cd /sys | |
parent | 839ed4eb254d9c994fff624c2a8f9158e6dce189 (diff) | |
download | FreeBSD-src-66b8e001744b6aa39013edd161ca16ec2df1b393.zip FreeBSD-src-66b8e001744b6aa39013edd161ca16ec2df1b393.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index fd10f11..3223171 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -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); } |