]> git.ozlabs.org Git - yaboot.git/commit
Add optional ino_size filesystem backend function
authorAnton Blanchard <anton@samba.org>
Thu, 8 Jul 2010 19:03:35 +0000 (19:03 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Fri, 16 Jul 2010 05:51:57 +0000 (15:51 +1000)
commitf9631a4c18c659a6144a697e0c629fe63a44970f
treea917c64aa58bc1922ec0b8f32b56a3d360e3000d
parent6f27cd4ad3feeba79cac882ef3f7177224a5935b
Add optional ino_size filesystem backend function

Our initrd loader is very fragile and the main reason is that it doesn't
know the size of the initrd. We end up claiming 1MB at a time and failing
completely if the new region isn't contiguous with the previous one.

Now that firmware is often at 32MB (real-base), and kernels have grown
much bigger (CONFIG_FUNCTION_TRACER and CONFIG_RELOCATABLE are two big
reasons), we see this failure a lot.

Create a function ino_size (similar to the silo bootloader) and
implement it for tftp and ext2 backends.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
include/fs.h
second/fs_ext2.c
second/fs_of.c