Whamcloud - gitweb
libext2fs: file IO routines should handle uninit blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Dec 2014 03:57:14 +0000 (22:57 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Dec 2014 03:57:14 +0000 (22:57 -0500)
commitdc7b8dad997fdd32494d7c63abe54a8f051fbc5a
tree427711e0b3f6818ec12182e971b4b7e90240d9b4
parent3548bb64b5690608720120b56beeafaecc68d68b
libext2fs: file IO routines should handle uninit blocks

The file IO routines do not handle uninit blocks at all.  The read
method should check for the uninit flag and return a buffer of zeroes,
and the write routine should convert unwritten extents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/fileio.c
tests/f_uninit_cat/expect [new file with mode: 0644]
tests/f_uninit_cat/image.gz [new file with mode: 0644]
tests/f_uninit_cat/name [new file with mode: 0644]
tests/f_uninit_cat/script [new file with mode: 0755]