Lines Matching refs:bsec
123 u_int8_t bsec[4]; /* big total sectors */ member
167 u_int bsec; /* big total sectors */ member
399 bpb.bsec = bpb.sec; in newfs_msdos_main()
411 bpb.bsec = opt_s; in newfs_msdos_main()
418 bpb.bsec = opt_s; in newfs_msdos_main()
420 bpb.bsec -= (opt_ofs / bpb.bps); in newfs_msdos_main()
421 delta = bpb.bsec % bpb.spt; in newfs_msdos_main()
424 (int)delta, bpb.bsec, bpb.spt); in newfs_msdos_main()
425 bpb.bsec -= delta; in newfs_msdos_main()
428 if (bpb.bsec <= 6000) /* about 3MB -> 512 bytes */ in newfs_msdos_main()
430 else if (bpb.bsec <= (1<<17)) /* 64M -> 4k */ in newfs_msdos_main()
432 else if (bpb.bsec <= (1<<19)) /* 256M -> 8k */ in newfs_msdos_main()
434 else if (bpb.bsec <= (1<<22)) /* 2G -> 16k, some versions of windows in newfs_msdos_main()
513 if (bpb.bsec < (bpb.res ? bpb.res : bss) + in newfs_msdos_main()
522 else if (bpb.rde || bpb.bsec < in newfs_msdos_main()
580 (u_int64_t)(maxcls(fat) + 1) * bpb.spc <= bpb.bsec; in newfs_msdos_main()
586 if (x1 + (u_int64_t)x * bpb.nft > bpb.bsec) in newfs_msdos_main()
589 x = (u_int64_t)(bpb.bsec - x1) * bpb.bps * NPB / in newfs_msdos_main()
608 cls = (bpb.bsec - x1) / bpb.spc; in newfs_msdos_main()
618 bpb.bsec = x1 + (cls + 1) * bpb.spc - 1; in newfs_msdos_main()
619 warnx("warning: FAT type limits file system to %u sectors", bpb.bsec); in newfs_msdos_main()
628 if (bpb.hid + bpb.bsec <= MAXU16) { in newfs_msdos_main()
629 bpb.sec = bpb.bsec; in newfs_msdos_main()
630 bpb.bsec = 0; in newfs_msdos_main()
672 mk4(bsbpb->bsec, bpb.bsec); in newfs_msdos_main()
820 bpb->bsec = (u_int)block_size; in getdiskinfo()
918 if (bpb->bsec == 0) in getdiskinfo()
919 bpb->bsec = lp->d_secperunit; in getdiskinfo()
940 if (bpb->bsec) in print_bpb()
941 printf(" bsec=%u", bpb->bsec); in print_bpb()