Lines Matching refs:mbr_size
119 int boot0_size, mbr_size; in main() local
196 mbr_size = read_mbr(disk, &mbr, !B_flag); in main()
200 write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size, 0); in main()
216 boot0_size = mbr_size; in main()
310 int mbr_size, fd; in read_mbr() local
327 mbr_size = 1024; in read_mbr()
328 if ((*mbr = malloc(mbr_size)) == NULL) in read_mbr()
331 (n = read(fd, *mbr, mbr_size)) == -1) in read_mbr()
333 if (n != mbr_size) in read_mbr()
336 return (mbr_size); in read_mbr()
372 write_mbr(const char *fname, int flags, u_int8_t *mbr, int mbr_size, in write_mbr() argument
383 n = write(fd, mbr, mbr_size); in write_mbr()
385 if (n != mbr_size) in write_mbr()
416 gctl_ro_param(grq, "bootcode", mbr_size, mbr); in write_mbr()