linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] btrfs-progs: check: verify symlinks with append/immutable flags
@ 2018-05-15  1:33 Su Yue
  2018-05-15  1:33 ` [PATCH v2 1/3] btrfs-progs: check: check " Su Yue
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Su Yue @ 2018-05-15  1:33 UTC (permalink / raw)
  To: linux-btrfs; +Cc: suy.fnst

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




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-06-07 13:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15  1:33 [PATCH v2 0/3] btrfs-progs: check: verify symlinks with append/immutable flags Su Yue
2018-05-15  1:33 ` [PATCH v2 1/3] btrfs-progs: check: check " Su Yue
2018-05-15  7:37   ` Qu Wenruo
2018-06-07  2:45   ` Misono Tomohiro
2018-06-07  3:53     ` Su Yue
2018-05-15  1:33 ` [PATCH v2 2/3] btrfs-progs: lowmem: " Su Yue
2018-05-15  7:38   ` Qu Wenruo
2018-05-15  1:33 ` [PATCH v2 3/3] btrfs-progs: fsck-tests: add test case to check symlinks with bad flags Su Yue
2018-05-31 11:40 ` [PATCH v2 0/3] btrfs-progs: check: verify symlinks with append/immutable flags David Sterba
2018-06-07  6:59   ` Su Yue
2018-06-07 13:04     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).