]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Add directory block trailers.
authorMark Fasheh <mfasheh@suse.com>
Thu, 11 Dec 2008 01:36:25 +0000 (17:36 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:34 +0000 (08:40 -0800)
commitb05a37b100691ed0f17122f2b72ed3d1be009f45
tree39f18bcf38b855fa7ec806803567532f214129f0
parentf23eeab6baf55d8a87c2e6072b38bfb92946385d
ocfs2: Add directory block trailers.

Future ocfs2 features metaecc and indexed directories need to store a
little bit of data in each dirblock.  For compatibility, we place this
in a trailer at the end of the dirblock.  The trailer plays itself as an
empty dirent, so that if the features are turned off, it can be reused
without requiring a tunefs scan.

This code adds the trailer and validates it when the block is read in.

[ Mark is the original author, but I reinserted this code before his
  dir index work.  -- Joel ]

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dir.c
fs/ocfs2/ocfs2.h
fs/ocfs2/ocfs2_fs.h