Update a number of routines to reflect the actual name

of the routine that caused the panic.
This commit is contained in:
Mike Pritchard 1997-03-09 06:10:36 +00:00
parent f465987999
commit d0ad3d988a
6 changed files with 20 additions and 20 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
* $Id$
* $Id: ufs_bmap.c,v 1.14 1997/02/22 09:47:44 peter Exp $
*/
#include <sys/param.h>
@ -195,7 +195,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp, runb)
if ((bp->b_flags & B_CACHE) == 0) {
#ifdef DIAGNOSTIC
if (!daddr)
panic("ufs_bmaparry: indirect block not in cache");
panic("ufs_bmaparray: indirect block not in cache");
#endif
bp->b_blkno = blkptrtodb(ump, daddr);
bp->b_flags |= B_READ;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
* $Id$
* $Id: ufs_bmap.c,v 1.14 1997/02/22 09:47:44 peter Exp $
*/
#include <sys/param.h>
@ -195,7 +195,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp, runb)
if ((bp->b_flags & B_CACHE) == 0) {
#ifdef DIAGNOSTIC
if (!daddr)
panic("ufs_bmaparry: indirect block not in cache");
panic("ufs_bmaparray: indirect block not in cache");
#endif
bp->b_blkno = blkptrtodb(ump, daddr);
bp->b_flags |= B_READ;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
* $Id$
* $Id: ufs_bmap.c,v 1.14 1997/02/22 09:47:44 peter Exp $
*/
#include <sys/param.h>
@ -195,7 +195,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp, runb)
if ((bp->b_flags & B_CACHE) == 0) {
#ifdef DIAGNOSTIC
if (!daddr)
panic("ufs_bmaparry: indirect block not in cache");
panic("ufs_bmaparray: indirect block not in cache");
#endif
bp->b_blkno = blkptrtodb(ump, daddr);
bp->b_flags |= B_READ;

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_lookup.c 8.15 (Berkeley) 6/16/95
* $Id$
* $Id: ufs_lookup.c,v 1.12 1997/02/22 09:47:49 peter Exp $
*/
#include <sys/param.h>
@ -604,7 +604,7 @@ ufs_dirbad(ip, offset, how)
(void)printf("%s: bad dir ino %ld at offset %ld: %s\n",
mp->mnt_stat.f_mntonname, ip->i_number, offset, how);
if ((mp->mnt_stat.f_flags & MNT_RDONLY) == 0)
panic("bad dir");
panic("ufs_dirbad: bad dir");
}
/*
@ -673,7 +673,7 @@ ufs_direnter(ip, dvp, cnp)
#ifdef DIAGNOSTIC
if ((cnp->cn_flags & SAVENAME) == 0)
panic("direnter: missing name");
panic("ufs_direnter: missing name");
#endif
dp = VTOI(dvp);
newdir.d_ino = ip->i_number;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_quota.c 8.5 (Berkeley) 5/20/95
* $Id$
* $Id: ufs_quota.c,v 1.11 1997/02/22 09:47:50 peter Exp $
*/
#include "opt_quota.h" /* not really necessary... */
@ -359,7 +359,7 @@ chkdquot(ip)
continue;
if (ip->i_dquot[i] == NODQUOT) {
vprint("chkdquot: missing dquot", ITOV(ip));
panic("missing dquot");
panic("chkdquot: missing dquot");
}
}
}
@ -767,7 +767,7 @@ dqget(vp, id, ump, type, dqp)
return (EUSERS);
}
if (dq->dq_cnt || (dq->dq_flags & DQ_MOD))
panic("free dquot isn't");
panic("dqget: free dquot isn't");
TAILQ_REMOVE(&dqfreelist, dq, dq_freelist);
LIST_REMOVE(dq, dq_hash);
}

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
* $Id$
* $Id: ufs_vnops.c,v 1.46 1997/02/22 09:47:53 peter Exp $
*/
#include "opt_quota.h"
@ -577,7 +577,7 @@ ufs_chown(vp, uid, gid, cred, p)
return (error);
good:
if (getinoquota(ip))
panic("chown: lost quota");
panic("ufs_chown: lost quota");
#endif /* QUOTA */
if (ouid != uid || ogid != gid)
ip->i_flag |= IN_CHANGE;
@ -1061,7 +1061,7 @@ ufs_rename(ap)
*/
if (xp == NULL) {
if (dp->i_dev != ip->i_dev)
panic("rename: EXDEV");
panic("ufs_rename: EXDEV");
/*
* Account for ".." in new directory.
* When source and destination have the same
@ -1098,12 +1098,12 @@ ufs_rename(ap)
vput(tdvp);
} else {
if (xp->i_dev != dp->i_dev || xp->i_dev != ip->i_dev)
panic("rename: EXDEV");
panic("ufs_rename: EXDEV");
/*
* Short circuit rename(foo, foo).
*/
if (xp->i_number == ip->i_number)
panic("rename: same file");
panic("ufs_rename: same file");
/*
* If the parent directory is "sticky", then the user must
* own the parent directory, or the destination of the rename,
@ -1177,7 +1177,7 @@ ufs_rename(ap)
xp->i_nlink--;
if (doingdirectory) {
if (--xp->i_nlink != 0)
panic("rename: linked directory");
panic("ufs_rename: linked directory");
error = VOP_TRUNCATE(tvp, (off_t)0, IO_SYNC,
tcnp->cn_cred, tcnp->cn_proc);
}
@ -1205,7 +1205,7 @@ ufs_rename(ap)
* From name has disappeared.
*/
if (doingdirectory)
panic("rename: lost dir entry");
panic("ufs_rename: lost dir entry");
vrele(ap->a_fvp);
return (0);
}
@ -1221,7 +1221,7 @@ ufs_rename(ap)
*/
if (xp != ip) {
if (doingdirectory)
panic("rename: lost dir entry");
panic("ufs_rename: lost dir entry");
} else {
/*
* If the source is a directory with a