Lines Matching defs:sz
194 u64 parse_size(char *sz)
196 int l = strlen(sz);
197 u64 n = strtoull(sz, 0, 10);
199 switch(sz[l-1]){
220 u64 sz;
229 sz = ptbl->header.last_lba - next_lba;
231 sz = parse_size(y);
232 if (sz & 511) {
236 sz /= 512;
239 if (sz == 0) {
244 if (x[0] && add_ptn(ptbl, next_lba, next_lba + sz - 1, x))
247 next_lba = next_lba + sz;
256 u64 sz;
275 sz = 2097152 * 16;
293 if (ioctl(fd, BLKGETSIZE64, &sz)) {
297 sz /= 512;
298 fprintf(stderr,"blocks %lld\n", sz);
303 init_mbr(ptbl.mbr, sz - 1);
309 hdr->backup_lba = sz - 1;
311 hdr->last_lba = sz - 1;