freebsd-nq/sbin/newfs_msdos
Warner Losh bf0d940a2f The code only converts from bpbHugeSectors to bpbSectors if the sum of
the hidden and huge sectors is less than or equal MAXU16. When
formatting in Windows bpbSectors is still used for 63488 sectors and
2048 hidden (sum > MAXU16). The hidden sectors count is the number of
sectors before the FAT16 Boot Record so it shouldn't affect the sector
count. Attached patch (huge_sec_conversion.patch) to only check for
bpb.bpbHugeSectors <= MAXU16 when converting to bpbSectors.

Submitted by: Guy Yur
PR: 183234
2016-08-30 18:01:26 +00:00
..
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkfs_msdos.c The code only converts from bpbHugeSectors to bpbSectors if the sum of 2016-08-30 18:01:26 +00:00
mkfs_msdos.h Update $NetBSD$ ID 2015-11-23 18:56:10 +00:00
newfs_msdos.8 It's 2015, and some people are still trying to use fdisk and then 2015-09-02 14:08:43 +00:00
newfs_msdos.c Use netbsd usage() implementation in newfs_msdos 2015-11-27 14:40:21 +00:00