[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170131025236.as4fvucj7qqphqef@thunk.org>
Date: Mon, 30 Jan 2017 21:52:36 -0500
From: Theodore Ts'o <tytso@....edu>
To: Artem Blagodarenko <artem.blagodarenko@...gate.com>
Cc: linux-ext4@...r.kernel.org,
"Darrick J. Wong" <darrick.wong@...cle.com>
Subject: Re: [v2] mke2fs: fix coping of empty file using fiemap
On Tue, Jan 17, 2017 at 06:14:19PM +0300, Artem Blagodarenko wrote:
> Hello,
>
> Darrick J. Wong, thank you for inspection. Here is second version of the patch.
>
> Changes since v1:
> * errno is returned in case failed ioctl
> * loop is terminated any time fm_mapped_extents == 0
>
> 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@...gate.com>
> Reviewed-by: Darrick J. Wong <darrick.wong@...cle.com>
Thanks, applied.
- Ted
Powered by blists - more mailing lists