summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2014-04-13 14:50:52 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2014-04-13 14:50:52 +0000
commit5ca245448d9fbe877fdff60651ebf794779e6aab (patch)
tree012f02d83b23d57a99b5cca5831fa838b1c334db /sys/boot/common
parentbffe6d7b4fdeca1c9c4a1437260c2fbc1150dd0d (diff)
downloadFreeBSD-src-5ca245448d9fbe877fdff60651ebf794779e6aab.zip
FreeBSD-src-5ca245448d9fbe877fdff60651ebf794779e6aab.tar.gz
Apparently some of the i386 boot blocks are so close to full that adding
single lines to ufsread.c spills them over. Duplicate a whole bunch of code to get file sizes into boot1.efi/boot1.c rather than modifying ufsread.c.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/ufsread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 599cd80..c02010f 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -245,8 +245,6 @@ fsread(ufs_ino_t inode, void *buf, size_t nbyte)
s = buf;
size = DIP(di_size);
n = size - fs_off;
- if (buf == NULL && nbyte == -1)
- return n;
if (nbyte > n)
nbyte = n;
nb = nbyte;
OpenPOWER on IntegriCloud