aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-06-17 20:44:21 +0000
committerrsc <devnull@localhost>2004-06-17 20:44:21 +0000
commiteacc220a040de32a873340274f09b8e0498ff85f (patch)
treed0005e28128b127033a94f8f764d640a1e81d01a /src/libventi
parentb98ae9bf71e83bc6fdee9a263ed062b9537b54a9 (diff)
downloadplan9port-eacc220a040de32a873340274f09b8e0498ff85f.tar.gz
plan9port-eacc220a040de32a873340274f09b8e0498ff85f.tar.bz2
plan9port-eacc220a040de32a873340274f09b8e0498ff85f.zip
less aborting, more chatting
Diffstat (limited to 'src/libventi')
-rw-r--r--src/libventi/cache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libventi/cache.c b/src/libventi/cache.c
index 394641d4..2ce96ee9 100644
--- a/src/libventi/cache.c
+++ b/src/libventi/cache.c
@@ -384,6 +384,8 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
qlock(&b->lk);
b->nlock = 1;
if(b->iostate == BioVentiError){
+ if(chattyventi)
+ fprint(2, "cached read error for %V\n", score);
werrstr("venti i/o error");
vtblockput(b);
return nil;
@@ -420,7 +422,8 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
n = vtread(c->z, score, type, b->data, c->blocksize);
if(n < 0){
werrstr("vtread %V: %r", score);
-abort();
+ if(chattyventi)
+ fprint(2, "read %V: %r\n", score);
b->iostate = BioVentiError;
vtblockput(b);
return nil;