diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-07-04 23:53:59 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-07-04 23:53:59 -0400 |
commit | 5c5685d163374bb3b3f148b696aec50b3fd82ce4 (patch) | |
tree | ca80dca82c44344c13b496edc6200b5e74d39385 /e2fsck/e2fsck.h | |
parent | b0f457bda89db94456617ee2302421832d6669c1 (diff) | |
download | e2fsprogs-5c5685d163374bb3b3f148b696aec50b3fd82ce4.tar.gz |
e2fsck: track ea_inode references
An extended attribute inode has a ref count to track how many entries
point to it. Update e2fsck to verify that the stored ref count is
correct.
Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'e2fsck/e2fsck.h')
-rw-r--r-- | e2fsck/e2fsck.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/e2fsck/e2fsck.h b/e2fsck/e2fsck.h index 79eeda9f..b25c5eb9 100644 --- a/e2fsck/e2fsck.h +++ b/e2fsck/e2fsck.h @@ -254,7 +254,6 @@ struct e2fsck_struct { ext2fs_inode_bitmap inode_bb_map; /* Inodes which are in bad blocks */ ext2fs_inode_bitmap inode_imagic_map; /* AFS inodes */ ext2fs_inode_bitmap inode_reg_map; /* Inodes which are regular files*/ - ext2fs_inode_bitmap inode_ea_map; /* EA inodes which are non-orphan */ ext2fs_block_bitmap block_found_map; /* Blocks which are in use */ ext2fs_block_bitmap block_dup_map; /* Blks referenced more than once */ @@ -275,6 +274,11 @@ struct e2fsck_struct { ext2_refcount_t ea_block_quota; /* + * ea_inode references from attr entries. + */ + ext2_refcount_t ea_inode_refs; + + /* * Array of flags indicating whether an inode bitmap, block * bitmap, or inode table is invalid */ |