[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090916182057.GF15451@mit.edu>
Date: Wed, 16 Sep 2009 14:20:57 -0400
From: Theodore Tso <tytso@....edu>
To: Akira Fujita <a-fujita@...jp.nec.com>
Cc: linux-ext4@...r.kernel.org, Peng Tao <bergwolf@...il.com>
Subject: Re: [PATCH 4/4]ext4: Fix different block exchange issue in
EXT4_IOC_MOVE_EXT
On Mon, Sep 14, 2009 at 05:17:30PM +0900, Akira Fujita wrote:
> ext4: Fix different block exchange issue in EXT4_IOC_MOVE_EXT
>
> From: Akira Fujita <a-fujita@...jp.nec.com>
>
> If logical block offset of original file which is passed to
> EXT4_IOC_MOVE_EXT is different from donor file's,
> a calculation error occurs in ext4_calc_swap_extents(),
> therefore wrong block is exchanged between original file and donor file.
> As a result, we hit ext4_error() in check_block_validity().
> To detect the logical offset difference in EXT4_IOC_MOVE_EXT,
> add checks to mext_calc_swap_extents() and handle it as error,
> since data exchange must be done between the same blocks in EXT4_IOC_MOVE_EXT.
>
> Reported-by: Peng Tao <bergwolf@...il.com>
> Signed-off-by: Akira Fujita <a-fujita@...jp.nec.com>
Applied, thanks.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists