diff options
author | Su Yue <suy.fnst@cn.fujitsu.com> | 2018-05-15 09:33:22 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:37 +0200 |
commit | eef9f3eed6a22ba51936437fb305d5e03d3a1141 (patch) | |
tree | 9d4177832af426f242cb5ad52fe83008744de44a /check/mode-original.h | |
parent | 723cab8a72d2bca14e99ec1320e138ed1ce3c0a6 (diff) |
btrfs-progs: check: check symlinks with append/immutable flags
Define new macro I_ERR_ODD_INODE_FLAGS to represents odd inode flags.
Symlinks should never have append/immutable flags.
While processing inodes, if found a symlink with append/immutable
flags, mark the inode record with I_ERR_ODD_INODE_FLAGS.
This is for original mode.
Issue: #133
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check/mode-original.h')
-rw-r--r-- | check/mode-original.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/check/mode-original.h b/check/mode-original.h index 368de692..13cfa5b9 100644 --- a/check/mode-original.h +++ b/check/mode-original.h @@ -186,6 +186,7 @@ struct file_extent_hole { #define I_ERR_LINK_COUNT_WRONG (1 << 13) #define I_ERR_FILE_EXTENT_ORPHAN (1 << 14) #define I_ERR_FILE_EXTENT_TOO_LARGE (1 << 15) +#define I_ERR_ODD_INODE_FLAGS (1 << 16) struct inode_record { struct list_head backrefs; |