6 vtzeroextend(int type, uchar *buf, uint n, uint nn)
12 memset(buf+n, 0, nn-n);
15 p = buf + (n/VtScoreSize)*VtScoreSize;
16 ep = buf + (nn/VtScoreSize)*VtScoreSize;
18 memmove(p, vtzeroscore, VtScoreSize);
21 memset(p, 0, buf+nn-p);
27 vtzerotruncate(int type, uchar *buf, uint n)
31 if(type == VtRootType){
39 for(p = buf + n; p > buf; p--) {
45 /* ignore slop at end of block */
46 p = buf + (n/VtScoreSize)*VtScoreSize;
49 if(memcmp(p - VtScoreSize, vtzeroscore, VtScoreSize) != 0)