btrfs-progs/check
Qu Wenruo c06c5eef88 btrfs-progs: check/lowmem: Add inode mode check
There is one report about invalid free space cache inode mode.
Normally free space cache inode should have mode 100600 (regular file,
no uid/gid/sticky bit, rw------ bit).

But in that report, we have free space cache inode mode as 0.

So at least btrfs check should report invalid inode mode.

This patch will at least make btrfs check lowmem mode to detect this
problem.

Please note that, this check only applies to inodes in fs/subvol trees.
It doesn't apply to free space cache inodes.

Reported-by: Thorsten Hirsch <t.hirsch@web.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
2019-04-16 09:04:25 +08:00
..
main.c btrfs-progs: Use @fs_info to replace @root for btrfs_check_leaf/node() 2019-04-16 09:04:25 +08:00
mode-common.c btrfs-progs: check: lowmem: Add ability to repair dir item with mismatched hash 2019-01-15 18:42:13 +01:00
mode-common.h btrfs-progs: check/lowmem: Add inode mode check 2019-04-16 09:04:25 +08:00
mode-lowmem.c btrfs-progs: check/lowmem: Add inode mode check 2019-04-16 09:04:25 +08:00
mode-lowmem.h btrfs-progs: check/lowmem: Add inode mode check 2019-04-16 09:04:25 +08:00
mode-original.h btrfs-progs: check: Delete file extent item with unaligned disk bytenr 2019-04-16 09:04:25 +08:00