]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
During filesystem creation with -d option files copied from given
authorArtem Blagodarenko <artem.blagodarenko@seagate.com>
Tue, 31 Jan 2017 02:51:14 +0000 (21:51 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 31 Jan 2017 02:51:14 +0000 (21:51 -0500)
commit75a790455c43abf623be10b52007b211b25ded3c
tree2a99141131875c22bf8f81f292a489ee5b7a26f5
parent83628f380976fc420e2cb3a7e6e44876a80b5916
During filesystem creation with -d option files copied from given
directory. If supported, FS_IOC_FIEMAP ioctl is used to get file
extents. For empty file fm_mapped_extents is 0 and no error code
is returned, because this is not fail situation.

Without this patch errno from previous operation is returned and
successful FS_IOC_FIEMAP ioctl call for empty file is interpreted
as error.

Signed-off-by: Artem Blagodarenko <artem.blagodarenko@seagate.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
misc/create_inode.c