diff options
author | Mark Fasheh <mfasheh@suse.com> | 2012-06-07 16:00:55 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-31 22:33:23 +0100 |
commit | 86279e7ef2f86dd630fcafc1135a4561e5a10f36 (patch) | |
tree | ee63c27ee4c245babb563b6fd27a023bd9dae3da /mkfs.c | |
parent | 905b078928fbbc6377edb1aabb9b9f3c8e0d8a9f (diff) |
btrfs-progs: add extended inode ref support to btrfsck
Add a function, process_inode_extref() to be called from process_one_leaf()
when an item type of BTRFS_INODE_EXTREF_KEY is encountered.
Similarly to process_inode_ref(), process_inode_extref() walks an extref and
adds an inode_backref structure for each reference found within.
I modified fsck's inode_backref to get a type field (ref_type) which helps
us internally track the exact type of backrefs found. Of course this field
could be overwritten in case of disk corruption (duplicate refs) but
duplicate refs themselves are tracked by btrfsck so that should not be an
issue as btrfsck is written today.
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Diffstat (limited to 'mkfs.c')
0 files changed, 0 insertions, 0 deletions