summaryrefslogtreecommitdiff
path: root/check/mode-lowmem.h
diff options
context:
space:
mode:
authorSu Yue <suy.fnst@cn.fujitsu.com>2018-05-15 09:33:23 +0800
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:38 +0200
commit42f7017ee690eae3f0caee5bcce9d30885794a19 (patch)
treec4ab53647a84c51cc9edf2bb96f935d91aa83a7a /check/mode-lowmem.h
parenteef9f3eed6a22ba51936437fb305d5e03d3a1141 (diff)
btrfs-progs: check: lowmem: check symlinks with append/immutable flags
Define new error bit INODE_FLAGS_ERROR to represents invalid inode flags error. Symlinks should never have append/immutable flags set. While checking inodes, if found a symlink with append/immutable flags, report and record the inode flags error. This is for lowmem 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-lowmem.h')
-rw-r--r--check/mode-lowmem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/check/mode-lowmem.h b/check/mode-lowmem.h
index e7ba62e2..91f7b6b1 100644
--- a/check/mode-lowmem.h
+++ b/check/mode-lowmem.h
@@ -44,6 +44,7 @@
#define DIR_COUNT_AGAIN (1<<20) /* DIR isize should be recalculated */
#define BG_ACCOUNTING_ERROR (1<<21) /* Block group accounting error */
#define FATAL_ERROR (1<<22) /* Fatal bit for errno */
+#define INODE_FLAGS_ERROR (1<<23) /* Invalid inode flags */
/*
* Error bit for low memory mode check.