
5 Apr
2023
5 Apr
'23
8:37 p.m.
On Wed, 5 Apr 2023 at 21:34, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
Given a file ../img of size 4294967296 with GPT partition table and partitions:
=> host bind 0 ../img => part list host 0 Disk host-0.blk not ready
The cause is os_filesize() returning int. File sizes must use off_t.
Correct all uses of os_filesize() too.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
v2: avoid different signedness when comparing numbers
arch/sandbox/cpu/os.c | 8 ++++++-- drivers/block/host_dev.c | 3 ++- include/os.h | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org