From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucio De Re To: 9fans mailing list <9fans@cse.psu.edu> Message-ID: <20030709121658.M7106@cackle.proxima.alt.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [9fans] I hate to insist... (Was: Venti for Fossil) Date: Wed, 9 Jul 2003 12:16:59 +0200 Topicbox-Message-UUID: effe6faa-eacb-11e9-9e20-41e7f4b1d025 I appreciate that some of my previous questions may have been a little uninformed, but now I really would like a simple answer: In /sys/src/cmd/venti/fmtindex.c, the last section starts addr = IndexBase; n = 0; ... and seemingly proceeeds to compute arena maps (amap[n]) based on the arena size amap[n].start = addr; addr += ap->arenas[j]->size; amap[n].stop = addr; with, later: ix->amap = amap; Why is the start address "IndexBase" and not "ArenaBase"? And, in my opinion, "addr" should be incremented by ap->arenas[j]->size + 2 * ap->arenas[j]->blockSize because ap->arenas[j]->size is generated (in arena.c:/initArena) by arena->size = size - 2 * blockSize; Please someone tell me where I'm going wrong! ++L