Lines Matching refs:sz
195 u64 parse_size(char *sz) in parse_size() argument
197 int l = strlen(sz); in parse_size()
198 u64 n = strtoull(sz, 0, 10); in parse_size()
200 switch(sz[l-1]){ in parse_size()
221 u64 sz; in parse_ptn() local
230 sz = ptbl->header.last_lba - next_lba; in parse_ptn()
232 sz = parse_size(y); in parse_ptn()
233 if (sz & 511) { in parse_ptn()
237 sz /= 512; in parse_ptn()
240 if (sz == 0) { in parse_ptn()
245 if (x[0] && add_ptn(ptbl, next_lba, next_lba + sz - 1, x)) in parse_ptn()
248 next_lba = next_lba + sz; in parse_ptn()
259 u64 sz, blk; in main() local
278 sz = 2097152 * 16; in main()
296 if (ioctl(fd, BLKGETSIZE64, &sz)) { in main()
300 sz /= 512; in main()
301 fprintf(stderr,"blocks %lld\n", sz); in main()
306 init_mbr(ptbl.mbr, sz - 1); in main()
312 hdr->backup_lba = sz - 1; in main()
314 hdr->last_lba = sz - 1; in main()