From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cn.fujitsu.com ([183.91.158.132]:3707 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752251AbeENKX3 (ORCPT ); Mon, 14 May 2018 06:23:29 -0400 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id 397AB4B3EF2E for ; Mon, 14 May 2018 18:23:28 +0800 (CST) From: Su Yue To: CC: Subject: [PATCH 0/3] btrfs-progs: check: verify symlinks with append/immutable flags Date: Mon, 14 May 2018 18:29:19 +0800 Message-ID: <20180514102922.8840-1-suy.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-btrfs-owner@vger.kernel.org List-ID: This patchset can be fetch from my github: https://github.com/Damenly/btrfs-progs/commits/odd_inode_flags 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 odd-inode-flags. #issue 133 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 odd flags check/main.c | 7 +++++++ check/mode-lowmem.c | 10 ++++++++++ check/mode-original.h | 1 + .../034-odd-inode-flags/default_case.img | Bin 0 -> 4096 bytes tests/fsck-tests/034-odd-inode-flags/test.sh | 15 +++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 tests/fsck-tests/034-odd-inode-flags/default_case.img create mode 100755 tests/fsck-tests/034-odd-inode-flags/test.sh -- 2.17.0