diff options
author | Heinrich Schuchardt | 2023-04-05 11:34:15 +0200 |
---|---|---|
committer | Simon Glass | 2023-04-28 11:30:17 -0600 |
commit | 1a07d395210cc0e9a114826e0b42106fd4336f46 (patch) | |
tree | 714e57df289aa19b77093e2f4595bced7eff5c0f /include/os.h | |
parent | 86daa47c84ddb67d880f304b9cb22898f2687811 (diff) |
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>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os.h b/include/os.h index 0415f0f0e7a..968412b0a82 100644 --- a/include/os.h +++ b/include/os.h @@ -64,7 +64,7 @@ off_t os_lseek(int fd, off_t offset, int whence); * @fd: File descriptor as returned by os_open() * Return: file size or negative error code */ -int os_filesize(int fd); +off_t os_filesize(int fd); /** * Access to the OS open() system call |