This patchset can be fetch from my github: https://github.com/Damenly/btrfs-progs/commits/odd_inode_flags It's based on devel.
symlinks should never have append/immutable attributes. This patchset enables btrfs check to verify such corruption. PATCH[1] is for original mode. PATCH[2] is for original mode. PATCH[3] adds a test image. For further use, the directory is called bad-inode-flags. #issue 133 --- Changelog: v2: Use "rec->errors |=" instead of "rec->errors =" in patch[1]. Define new error bit of invalid inode flags in lowmem mode. Adjust print message in patch[2]. Thanks, Qu and Nikolay. Rename test directory from odd-inode-flags to bad-inode-flags. Su Yue (3): btrfs-progs: check: check symlinks with append/immutable flags btrfs-progs: lowmem: check symlinks with append/immutable flags btrfs-progs: fsck-tests: add test case to check symlinks with bad flags check/main.c | 7 +++++++ check/mode-lowmem.c | 10 ++++++++++ check/mode-lowmem.h | 1 + check/mode-original.h | 1 + .../034-bad-inode-flags/default_case.img | Bin 0 -> 4096 bytes tests/fsck-tests/034-bad-inode-flags/test.sh | 15 +++++++++++++++ 6 files changed, 34 insertions(+) create mode 100644 tests/fsck-tests/034-bad-inode-flags/default_case.img create mode 100755 tests/fsck-tests/034-bad-inode-flags/test.sh -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html