summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-09 22:08:05 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-09 22:08:05 +0000
commit6f4f728595be47aae68122893a6eb58875a76094 (patch)
tree22824b4e2cfcd0a49800f8da6b44ec8456999fab /sys
parent9105c7e6444f5d1ae5f4fc7ebe8b8148634ed24f (diff)
In the nfs bio functions, instead of looking at an invalid vnode type,
deciding to do nothing, printing about it and continuing along our merry way without even erroring the sodding buffer, just panic. by this point we are liked very fucked up anyway. found in either edmonton or stockholm then forgotten. ok beck@, blambert@
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_bio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 8e09e51a3dd..af2103d0b48 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_bio.c,v 1.68 2009/10/19 22:24:18 jsg Exp $ */
+/* $OpenBSD: nfs_bio.c,v 1.69 2010/04/09 22:08:04 oga Exp $ */
/* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */
/*
@@ -219,7 +219,7 @@ again:
on = 0;
break;
default:
- printf(" nfsbioread: type %x unexpected\n",vp->v_type);
+ panic("nfsbioread: type %x unexpected\n", vp->v_type);
break;
}
@@ -235,7 +235,7 @@ again:
n = 0;
break;
default:
- printf(" nfsbioread: type %x unexpected\n",vp->v_type);
+ panic("nfsbioread: type %x unexpected\n", vp->v_type);
}
if (got_buf)
brelse(bp);
@@ -612,7 +612,7 @@ nfs_doio(struct buf *bp, struct proc *p)
error = nfs_readlinkrpc(vp, uiop, curproc->p_ucred);
break;
default:
- printf("nfs_doio: type %x unexpected\n", vp->v_type);
+ panic("nfs_doio: type %x unexpected\n", vp->v_type);
break;
};
if (error) {