sys/boot/common: Make ufsread.c build and work with efi boot1 from FreeBSD.
commit4982ad167b2226c17bc6d5d52fa722e6da900eb2
authorImre Vadász <imre@vdsz.com>
Sat, 27 Feb 2016 23:49:34 +0000 (28 00:49 +0100)
committerImre Vadász <imre@vdsz.com>
Sun, 17 Apr 2016 12:20:33 +0000 (17 14:20 +0200)
treeaee09a0803a4016037faf49a08abead8bad8a15a
parent91805ac98f56acd3cf06da0247ed2ecde3fb40ac
sys/boot/common: Make ufsread.c build and work with efi boot1 from FreeBSD.

* Bring ufsread.c a bit closer to the FreeBSD code (mostly by adding
  fs_read_size(), which is needed for the efi boot1.

* So far ufsread.c was only used in sys/boot/pc32/boot2, where it was
  built with -DBOOT2 in CFLAGS. Nothing should change there, since all
  changes in this commit are either #ifndef BOOT2, or obviously shouldn't
  make a difference for the pc32/boot2 (like adding the
  boot2_ufs_read_size() function).

Partly-Taken-From: FreeBSD
sys/boot/common/ufsread.c