summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-01-30 09:38:02 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2013-01-30 09:38:02 +0100
commit2c62f8dc670b41ffc3f8205cb728857918372a0c (patch)
tree787381a10e030da926bfa4379b16d11fe59fd4e8 /sys/src/cmd/hjfs
parent8e658df4fe85592fccc32c24283dfa17de5969e2 (diff)
hjfs: fix bogus nodata getbuf() of superblock in createroot() (failed ream race bug)
we used to do getbuf() with nodata flag so it only worked when we where lucky and got the same in memory block back. this is uncritical once you have reamed the filesystem, its just that sometimes ream would fail with "ream successfull, then hjfs: fsinit: file ./hjfs not found".
Diffstat (limited to 'sys/src/cmd/hjfs')
-rw-r--r--sys/src/cmd/hjfs/fs1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hjfs/fs1.c b/sys/src/cmd/hjfs/fs1.c
index 1d463f2db..bd9e87036 100644
--- a/sys/src/cmd/hjfs/fs1.c
+++ b/sys/src/cmd/hjfs/fs1.c
@@ -171,7 +171,7 @@ createroot(Fs *fs)
d->atime = d->mtime;
c->op |= BWRIM;
putbuf(c);
- c = getbuf(fs->d, SUPERBLK, TSUPERBLOCK, 1);
+ c = getbuf(fs->d, SUPERBLK, TSUPERBLOCK, 0);
if(c == nil)
goto error;
fs->root = r;