mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add block-size to partition packages.
Yaboot uses "block-size" with disk-label packages. This patch add block-size to all partitions packages. Signed-off-by: Laurent Vivier <Laurent@lvivier.info> git-svn-id: svn://coreboot.org/openbios/openbios-devel@291 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Blue Swirl
parent
4fdc0e0fff
commit
5766c8fb3a
@@ -118,6 +118,12 @@ macparts_get_info( macparts_info_t *di )
|
||||
DPRINTF("macparts_get_info %lld %lld\n", di->offs, di->size);
|
||||
}
|
||||
|
||||
static void
|
||||
macparts_block_size( __attribute__((unused))macparts_info_t *di )
|
||||
{
|
||||
PUSH(512);
|
||||
}
|
||||
|
||||
static void
|
||||
macparts_initialize( macparts_info_t *di )
|
||||
{
|
||||
@@ -128,6 +134,7 @@ NODE_METHODS( macparts ) = {
|
||||
{ "probe", macparts_probe },
|
||||
{ "open", macparts_open },
|
||||
{ "get-info", macparts_get_info },
|
||||
{ "block-size", macparts_block_size },
|
||||
{ NULL, macparts_initialize },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user