]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: use __u64 instead of ext2_off64_t in qcow.c
authorTheodore Ts'o <tytso@mit.edu>
Tue, 31 Dec 2019 22:16:25 +0000 (17:16 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Jan 2020 18:41:35 +0000 (13:41 -0500)
commit193cf9be4bed56e47797baa1774cc81d7d76e242
treeb08664639dac35fa962a2281241eaef2abdba1d8
parentd23f88ebaafbb5141822f5998a4417abdb8ffb36
libext2fs: use __u64 instead of ext2_off64_t in qcow.c

The type ext2_off64_t should only be used in the context of the ext2fs
library's llseek() and ftruncate() analogs, ext2_file_llseek() and
ext2_inode_set_size().  That's because like the POSIX.1's off_t, it
needs to be a signed integer value so that SEEK_END will work
correctly.

qcow.c's use of ext2_off64_t is only internal, and not in any exposed
interfaces, so changes nothing; it just prepares us to be able to
change the type of ext2_off64_t.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/qcow2.c