]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
metadump: reorder inode record sanity checks and inode buffer read
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
commit3fe33d921220b7e9ee5801f63c38c83714d8e914
treef7446195666679a9e7aee49e1fce2060a58538d2
parent9f984cdcff4099c5b0c055e65aae62961f97a5ad
metadump: reorder inode record sanity checks and inode buffer read

In preparation to support sparse inode records, refactor
copy_inode_chunk() to perform all record sanity checks before the cursor
is set to the inode chunk and the inode buffer is read.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/metadump.c