]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - db/type.c
db: add a special directory buffer verifier
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:49 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 17:14:03 +0000 (11:14 -0600)
commitfc068a1902148eaaad7a7e5e9972155dd68a647c
tree2246b85df30b7170a58ea8c601409ab553d5db2c
parent66a40d020d7abb6fe09693f4392b6af2b30aa3b3
db: add a special directory buffer verifier

Because we only have a single directory type that is used for all
the different buffer types, we need to provide a special verifier
for the read code. That verifier needs to know all the directory
types and when it find one it knows about, switch to the correct
verifier and call it.

We already do this for certain readahead cases in the directory
code, so there is precedence for this. If we don't find a magic
number we recognise, the verifier fails...

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
db/dir2.c
db/dir2.h
db/type.c