[kernel] Rewrite block requests to use start sector and count rather than block number #1660
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work in preparation to move track caching code out of bioshd driver, for use by other drivers.
All block drivers changed to receive requests in terms of sectors, allowing eventual use of a multi-sector I/O request for track caching or raw device I/O (without system buffers) with any block device driver.
Adds
get_sector_size
function allowingll_rw_blk
level to learn sector size based on device number. This is implemented using the renamed HDIO_GET_SECTOR_SIZE -> IOCTL_BLK_GET_SECTOR_SIZE ioctl on block drivers that support hardware sector sizes != 512.Tested on SSD (/dev/ssd), ramdisk (/dev/rd0) and bios (/dev/fd0, /dev/hd) drivers.