summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_scan_sta.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2007-07-12 17:17:47 +0000
committerbde <bde@FreeBSD.org>2007-07-12 17:17:47 +0000
commitdba17f21d375effcf89349e1d86b34b2f408ad0b (patch)
tree4158e3668ebe22dacaf64729dcd3f690623503d0 /sys/net80211/ieee80211_scan_sta.c
parent441582040c22d482801d42047860f700b6035be8 (diff)
downloadFreeBSD-src-dba17f21d375effcf89349e1d86b34b2f408ad0b.zip
FreeBSD-src-dba17f21d375effcf89349e1d86b34b2f408ad0b.tar.gz
Round up the FAT block size to a multiple of the sector size so that i/o
to the FAT is possible. Make the FAT block size less arbitrary before it is rounded up: - for FAT12, default to 3*512 instead of to 3 sectors. The magic 3 is the default number of 512-byte FAT sectors on a floppy drive. That many sectors is too many if the sector size is larger. - for !FAT12, default to PAGE_SIZE instead of to 4096. Remove MSDOSFS_DFLTBSIZE since it only obfuscated this 4096. For reading the BPB, use a block size of 8192 instead of 2048 so that sector sizes up to 8192 can work. We should try several sizes, or just try the maximum supported size (MAXBSIZE = 64K). I use 8192 because that is enough for DVD-RW's (even 2048 is enough) and 8192 has been tested a lot in use by ffs. This completes fixing msdosfs for some large sector sizes (up to 8K for read and 64K for write). Microsoft documents support for sector sizes up to 4K in mdosfs. ffs is currently limited to 8K for both read and write. Approved by: re (kensmith) Approved by: nyan (several years ago)
Diffstat (limited to 'sys/net80211/ieee80211_scan_sta.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud