disk: Make the sector size dynamic
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 5 Apr 2011 00:26:59 +0000 (17:26 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 5 Apr 2011 00:26:59 +0000 (17:26 -0700)
commit851b968489f2d31b0dd0dd07055656e59fa92404
treea602958c0f50baf984ca79bd07c92184c830aa49
parent0c527252d94c5fc54e637143ec9fdb36ac698c62
disk: Make the sector size dynamic

Make the sector size dynamic in anticipation of disks with
non-512-byte logical sectors.

With this change, bsBytesPerSec *must* be correct; this still needs to
be added to the installers to enforce.  Furthermore, the number of
sectors in one extent can still only be < 64K.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/diskfs.inc
core/diskstart.inc