]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix EFI UFS caching
authorSteven Hartland <smh@FreeBSD.org>
Thu, 21 Jan 2016 08:58:39 +0000 (08:58 +0000)
committerSteven Hartland <smh@FreeBSD.org>
Thu, 21 Jan 2016 08:58:39 +0000 (08:58 +0000)
commitba76113f61baeb465b0c67fc950c73dad54d8975
treec18700088609f757816f2873e9bdd79c31948057
parent405b75f94c029e8eadfff1e592289ae978735838
Fix EFI UFS caching

EFI was mixing caching in two separate places causing issues when multiple
partitions where tested.

Eliminate this by removing fsstat and re-factoring fsread into fsread_size,
adding basic parameter validation.

Also:
* Enhance some error print outs.
* Fix compilation under UFS1_ONLY and UFS2_ONLY
* Use sizeof on vars instead of structs.
* Add basic parameter validation to fsread_size.

MFC after: 1 week
X-MFC-With: r293268
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D4989
sys/boot/common/ufsread.c
sys/boot/efi/boot1/ufs_module.c