changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > ventivac / changeset: version 3 is new root block version, only when rabin fingerprinting is used. it's called "Rootversionvar".

changeset 61: fc315481eafc
parent 60: 63be518910d8
child 62: 29e265a144f7
author: Mechiel Lukkien <mechiel@ueber.net>
date: Fri, 13 Jul 2007 16:10:04 +0200
files: appl/cmd/vacput.b module/vac.m
description: version 3 is new root block version, only when rabin fingerprinting is used. it's called "Rootversionvar".
     1.1--- a/appl/cmd/vacput.b	Fri Jul 13 16:03:48 2007 +0200
     1.2+++ b/appl/cmd/vacput.b	Fri Jul 13 16:10:04 2007 +0200
     1.3@@ -57,7 +57,7 @@
     1.4 	prime := 269;
     1.5 	mod := 1<<10;
     1.6 	width := 3;
     1.7-	mask := mod-1;    # xxx unused by module for now
     1.8+	mask := mod-1;
     1.9 	blockmin = 1024;
    1.10 	blockmax = 32*1024;
    1.11 
    1.12@@ -141,7 +141,7 @@
    1.13 
    1.14 	root := Root.new(name, "vac", tscore, blocksize, nil);
    1.15 	if(rflag) {
    1.16-		root.version = 3; # xxx Rootversionrabin
    1.17+		root.version = Vac->Rootversionvar;
    1.18 		root.rtype = "rvac";
    1.19 		root.blocksize = 0;
    1.20 	}
     2.1--- a/module/vac.m	Fri Jul 13 16:03:48 2007 +0200
     2.2+++ b/module/vac.m	Fri Jul 13 16:10:04 2007 +0200
     2.3@@ -29,6 +29,8 @@
     2.4 	Metablocksize:	con 12;
     2.5 	Metaentrysize:	con 4;
     2.6 
     2.7+	Rootversionvar:	con 3;	# xxx move to venti.m
     2.8+
     2.9 	Dsize:	con 8*1024;
    2.10 
    2.11 	Entryactive:	con (1<<0);	# entry is in use