]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit87d35a74b15ec703910a63e0667692fb5e267be0
tree39f18bcf38b855fa7ec806803567532f214129f0
parent84008972491ca91b240f106191519781dabb8016
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