]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: fix return type of os_filesize()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 5 Apr 2023 09:34:15 +0000 (11:34 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 17:30:17 +0000 (11:30 -0600)
commit1a07d395210cc0e9a114826e0b42106fd4336f46
tree714e57df289aa19b77093e2f4595bced7eff5c0f
parent86daa47c84ddb67d880f304b9cb22898f2687811
sandbox: fix return type of os_filesize()

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c
drivers/block/host_dev.c
include/os.h