[PATCH 14/22] xfs: shortform directory offsets change for dir3 format

Ben Myers bpm at sgi.com
Wed Apr 10 14:52:49 CDT 2013


On Wed, Apr 03, 2013 at 04:11:24PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
> 
> Because the header size for the CRC enabled directory blocks is
> larger, the offset of the first entry into a directory block is
> different to the dir2 format. The shortform directory stores the
> dirent's offset so that it doesn't change when moving from shortform
> to block form and back again, and hence it needs to take into
> account the different header sizes to maintain the correct offsets.
> 
> Signed-off-by: Dave Chinner <dchinner at redhat.com>

Looks great.

-Ben



More information about the xfs mailing list