Searched refs:bootlen (Results 1 – 1 of 1) sorted by relevance
1482 write_DOS_label(int fd, uchar_t *bootloadr, int bootlen, char *altbootname, in write_DOS_label() argument1493 if (bootlen < 512 || !bootloadr) { in write_DOS_label()1496 bootlen = 512; in write_DOS_label()1501 if (bootlen % 512 > 0) in write_DOS_label()1502 bootlen = (bootlen + 511) / 512 * 512; in write_DOS_label()1533 bootlen -= 512; in write_DOS_label()1542 bootclen = (bootlen + 512 * (int)bpb->b_spcl - 1) / in write_DOS_label()1625 if (bootlen && write(fd, bootloadr, bootlen) != bootlen) { in write_DOS_label()