]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
AOSP: mke2fs, libext2fs: fix bugs on windows
authorJin Qian <jinqian@google.com>
Mon, 24 Jul 2017 21:18:16 +0000 (14:18 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Feb 2018 17:22:57 +0000 (12:22 -0500)
commit2d545e3762636a1f5d4be5ee831c3d188d007ed5
tree132c68dd8cca11a48a76879d79655248bc933dfd
parentbee92ebe7fc453d2489b6906770caaeb5cc10264
AOSP: mke2fs, libext2fs: fix bugs on windows

Added O_BINARY to open output files on windows, otherwise they're
written as text files and have invalid data.

Use '(filename):block_count:block_size' for sparse file name because
windows file name can contain ':', e.g. 'c:\output_file'.

Bug: 23686092

Change-Id: I731c13e5df0be8c831464c431b8949d33438fb24
From AOSP commit: 0dcf8ec6a429ce4f024fe7838fee2d5636e8ba4d
contrib/android/e2fsdroid.c
lib/ext2fs/initialize.c
lib/ext2fs/sparse_io.c
misc/mke2fs.c