3 vtzerotruncate, vtzeroextend, vtzeroscore \- Venti block truncation
14 uint vtzerotruncate(int type, uchar *buf, uint size)
17 void vtzeroextend(int type, uchar *buf, uint size, uint newsize)
20 extern uchar vtzeroscore[VtScoreSize];
22 These utility functions compute how to truncate or replace
23 trailing zeros (for data blocks) or trailing zero scores
24 (for pointer blocks) to canonicalize the blocks before
25 storing them to Venti.
28 returns the size of the
32 ignoring trailing zeros or zero scores,
33 according to the given
39 with zeros or zero scores,
40 according to the given
49 is the score of the zero-length block.
51 .B \*9/src/libventi/zero.c
53 .B \*9/src/libventi/zeroscore.c