freebsd-dev/sys
Warner Losh a5928b20d5 fwsectors and fwheads used to be somehwat arbitrary. However, they are
used to align partitions in gpart. We also try to align partitions by
stripe size when creating new media. Align these two concepts by
making fwsectors the same as the stripe size. Select a sensible number
of heads so we wind up with about 20 cylinders. This number was
selected to keep the rounding effects to a few percent while keeping
the number of cylinder groups low.

Sadly, it is not possible to make these numbers match the numbers used
by SD card readers. There apperas to be much variation between brands
so there's no one universal number. These numbers are also not aligned
to the stripe size, so some performance problems may still be present
when SD cards are created this way.

Also, these numbers will differ from the far less common SD to ATA
adapters, which present a different, but more uniform, set of numbers
that also happened to match the old defaults.

Nothing should change for current users. Any suboptimal performance
caused by misalignment will still be there. gpart will honor the
partitions that aren't on proper boudnaries, but editing the partition
tables may result in different alignments being used than before when
editing things natively.

Ideally, there'd be some way to override these values in the disk
subsystem by the user for the USB adapter use case where all "native"
notions of geometry disappear. This does not implement that.
2014-10-16 19:52:12 +00:00
..
amd64 Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
arm Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
boot Correct grammos. 2014-10-15 17:55:10 +00:00
bsm
cam Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
cddl Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
compat Regenerate after r272823: 2014-10-09 15:19:35 +00:00
conf Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
contrib Update the OFED Linux compatibility layer and 2014-10-15 13:40:29 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev fwsectors and fwheads used to be somehwat arbitrary. However, they are 2014-10-16 19:52:12 +00:00
fs Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
isa
kern Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
kgssapi
libkern Change the PF hash from Jenkins to Murmur3. In forwarding tests 2014-10-10 19:26:26 +00:00
mips Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
modules opt_mrouting.h isn't needed anymore. 2014-10-14 14:52:39 +00:00
net Add more ifdefs. SIOC*_IN6 are defined only with INET6. 2014-10-14 14:51:27 +00:00
net80211 Mechanically convert to if_inc_counter(). 2014-09-19 09:20:55 +00:00
netgraph Bump ipfw module version. 2014-10-09 16:12:01 +00:00
netinet Fix the reported streams in a SCTP_STREAM_RESET_EVENT, if a 2014-10-16 15:36:04 +00:00
netinet6 Overhaul if_gif(4): 2014-10-14 13:31:47 +00:00
netipsec Do not strip outer header when operating in transport mode. 2014-10-02 02:00:21 +00:00
netnatm
netpfil Fix matching default rule on clear/show commands. 2014-10-13 13:49:28 +00:00
netsmb
nfs Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
nfsclient Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm
ofed Update the OFED Linux compatibility layer and 2014-10-15 13:40:29 +00:00
opencrypto Fix build for kernels without COMPAT_FREEBSD32. 2014-09-22 17:32:27 +00:00
pc98 Merge pc98's machdep.c into i386/i386/machdep.c. 2014-10-04 06:01:30 +00:00
powerpc Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Replace dev_clone with cdevpriv(9) KPI in audit_pipe code. 2014-08-20 16:04:30 +00:00
sparc64 Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
sys Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
teken
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs Use lockless quota checks in qsync and qsyncvp. 2014-10-16 12:41:14 +00:00
vm Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
x86 Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
xdr
xen xen: convert the xenstore user-space char device to a newbus device 2014-09-30 17:31:04 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00