summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs/buf.c
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-03-28 20:39:14 -0500
committerspew <devnull@localhost>2017-03-28 20:39:14 -0500
commit1c13d41b8c1f2b94c5e9dcbf3154252c823f14d3 (patch)
treed58f02bdf67ee9d039e06889227a13e8f3b3f371 /sys/src/cmd/hjfs/buf.c
parente51044884b329d808015c7972d1c8409303faab3 (diff)
hjfs: Fix bugs in ref count scan check. Enable as a console command (caveat: command arguments will change as I implement more functionality)
Diffstat (limited to 'sys/src/cmd/hjfs/buf.c')
-rw-r--r--sys/src/cmd/hjfs/buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/buf.c b/sys/src/cmd/hjfs/buf.c
index b8eca9bdf..e739e3a55 100644
--- a/sys/src/cmd/hjfs/buf.c
+++ b/sys/src/cmd/hjfs/buf.c
@@ -273,7 +273,7 @@ getbuf(Dev *d, uvlong off, int type, int nodata)
}
if(nodata)
b->type = type;
- if(b->type != type && type != -1){
+ if(b->type != type && type != TDONTCARE){
dprint("type mismatch, dev %s, block %lld, got %T, want %T, caller %#p\n",
d->name, off, b->type, type, getcallerpc(&d));
werrstr("phase error -- type mismatch");