Whamcloud - gitweb
libext2fs: fix ext2fs_get_device_size2() return value on Windows
authorEric Biggers <ebiggers@google.com>
Wed, 1 Mar 2023 03:45:18 +0000 (19:45 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 31 Mar 2024 05:00:22 +0000 (01:00 -0400)
commit72e30620b1ebd4742a8cda6cd4220a5423ca3180
treecbbde553b467a26427cfe68ed2fdccdd8e3e8212
parentb112f906212ff8067da82c9449413e93944b67f4
libext2fs: fix ext2fs_get_device_size2() return value on Windows

Creating a file system on Windows without a pre-existing file stopped
working because the Windows version of ext2fs_get_device_size2() doesn't
return ENOENT if the file doesn't exist.  Fix this.

Fixes: 53464654bd33 ("mke2fs: fix creating a file system image w/o a pre-existing file")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20230301034518.373859-1-ebiggers@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
.github/workflows/ci.yml
lib/ext2fs/getsize.c
lib/ext2fs/windows_io.c