diff options
author | Russ Cox <rsc@swtch.com> | 2009-05-25 02:11:27 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-05-25 02:11:27 -0700 |
commit | 75d048884cfcb7cc4404b384da50923e22224365 (patch) | |
tree | b918a6a957b1f322ebb2f84c16092e103f91acda /src/libdiskfs | |
parent | 33b446b8bbfea80552d462296d27ad4114fbd3fb (diff) | |
download | plan9port-75d048884cfcb7cc4404b384da50923e22224365.tar.gz plan9port-75d048884cfcb7cc4404b384da50923e22224365.tar.bz2 plan9port-75d048884cfcb7cc4404b384da50923e22224365.zip |
venti: 32-bit extensions to data structures
Diffstat (limited to 'src/libdiskfs')
-rw-r--r-- | src/libdiskfs/venti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libdiskfs/venti.c b/src/libdiskfs/venti.c index 4830439c..e3e44204 100644 --- a/src/libdiskfs/venti.c +++ b/src/libdiskfs/venti.c @@ -96,13 +96,13 @@ _vtfileblock(VtCache *c, VtEntry *e, u32int bn) } /*fprint(2, "vtread %V\n", e->score); */ - b = vtcacheglobal(c, e->score, e->type); + b = vtcacheglobal(c, e->score, e->type, d == 0 ? e->dsize : e->psize); for(i=d-1; i>=0 && b; i--){ t = VtDataType+i; /*fprint(2, "vtread %V\n", b->data+index[i]*VtScoreSize); */ memmove(score, b->data+index[i]*VtScoreSize, VtScoreSize); vtblockput(b); - b = vtcacheglobal(c, score, t); + b = vtcacheglobal(c, score, t, i == 0 ? e->dsize : e->psize); } return b; } @@ -122,7 +122,7 @@ diskopenventi(VtCache *c, uchar score[VtScoreSize]) VtRoot root; VtBlock *b; - if((b = vtcacheglobal(c, score, VtRootType)) == nil) + if((b = vtcacheglobal(c, score, VtRootType, VtRootSize)) == nil) goto Err; if(vtrootunpack(&root, b->data) < 0) goto Err; @@ -132,7 +132,7 @@ diskopenventi(VtCache *c, uchar score[VtScoreSize]) } vtblockput(b); - if((b = vtcacheglobal(c, root.score, VtDirType)) == nil) + if((b = vtcacheglobal(c, root.score, VtDirType, VtEntrySize)) == nil) goto Err; if(vtentryunpack(&e, b->data, 0) < 0) goto Err; |