sparc64: #blocks disk node method
authorEric Snowberg <eric.snowberg@oracle.com>
Tue, 27 Feb 2018 01:34:19 +0000 (17:34 -0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 5 Mar 2018 14:12:35 +0000 (15:12 +0100)
commitab4c93cb4bb443620e141cc70f274b89a51a1d05
tree0724b8cdf3580acd700375f747e808de3d940e35
parentad6d8f5063a272e2f1e4857751db70058b977239
sparc64: #blocks disk node method

Return the number of blocks of storage associated with the device or
instance. Where a "block" is a unit of storage consisting of the number
of bytes returned by the package's "block-size" method. If the size cannot
be determined, the #blocks method returns the maximum unsigned integer
(which, because of Open Firmware's assumption of two's complement arithmetic,
is equivalent to the signed number -1). If the number of blocks exceeds
the range of an unsigned number, return 0 to alert the caller to try
the #blocks64 command.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/sparc64/ieee1275/ieee1275.c
include/grub/sparc64/ieee1275/ieee1275.h