[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 12 Dec 2013 13:27:33 -0500
From: Theodore Ts'o <tytso@....edu>
To: "Darrick J. Wong" <darrick.wong@...cle.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH 34/74] e2fsck: in rehash, mark newly allocated extent
blocks as found
On Tue, Dec 10, 2013 at 05:22:07PM -0800, Darrick J. Wong wrote:
> When we're rehashing directories, it's possible that an extent block
> (or a map block) could be (silently) allocated by the underlying
> libext2fs when expanding the directory. This silent allocation is not
> captured in block_found_map, which is disastrous if later the rehash
> process expands another directory and uses that same block from
> before without realizing that it's now in use.
>
> Therefore, if we notice that the free block count has dropped by more
> than what e2fsck allocated itself during the expansion, we iterate the
> directory's blocks a second time to ensure that these silent
> allocations are marked in the found blocks bitmap.
>
> Signed-off-by: Darrick J. Wong <darrick.wong@...cle.com>
Thanks, applied.
- 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