Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs Remove diagnostic ufs_vinit check, this isn't qu...



details:   https://anonhg.NetBSD.org/src/rev/3d4c4b3e50ea
branches:  trunk
changeset: 545596:3d4c4b3e50ea
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Fri Apr 11 14:13:28 2003 +0000

description:
Remove diagnostic ufs_vinit check, this isn't quite the right place for it;
it'll be reinstated elsewhere.

diffstat:

 sys/ufs/ufs/ufs_vnops.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (40 lines):

diff -r 18a1f55ca802 -r 3d4c4b3e50ea sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c   Fri Apr 11 13:55:24 2003 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c   Fri Apr 11 14:13:28 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_vnops.c,v 1.95 2003/04/11 10:36:33 fvdl Exp $      */
+/*     $NetBSD: ufs_vnops.c,v 1.96 2003/04/11 14:13:28 fvdl Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993, 1995
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.95 2003/04/11 10:36:33 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.96 2003/04/11 14:13:28 fvdl Exp $");
 
 #ifndef _LKM
 #include "opt_quota.h"
@@ -2033,20 +2033,13 @@
        case VFIFO:
                vp->v_op = fifoops;
                break;
+       case VNON:
        case VBAD:
        case VSOCK:
        case VLNK:
        case VDIR:
        case VREG:
                break;
-       case VNON:
-#ifdef DIAGNOSTIC
-       default:
-               panic("ufs_vinit: ino %d: bad mode %x", ip->i_number,
-                   ip->i_mode);
-#else
-               break;
-#endif
        }
        if (ip->i_number == ROOTINO)
                 vp->v_flag |= VROOT;



Home | Main Index | Thread Index | Old Index