]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: shortform directory offsets change for dir3 format
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:36 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 18:21:45 +0000 (13:21 -0500)
commit584f90b0841e4024c17321754000525621f5c1d1
treede20807c3f16710779e24c9398985dd786db18bc
parent65b80c98dcd8d31a45fa2190bbba4cf5d8b67b9d
xfs: shortform directory offsets change for dir3 format

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@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
db/check.c
include/xfs_dir2_format.h
libxfs/xfs_dir2_sf.c
repair/dir2.c