From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CB8AC2D0A3 for ; Mon, 9 Nov 2020 05:40:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59D4320897 for ; Mon, 9 Nov 2020 05:40:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="JjCQ+Eit" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729335AbgKIFkB (ORCPT ); Mon, 9 Nov 2020 00:40:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:54478 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729122AbgKIFkB (ORCPT ); Mon, 9 Nov 2020 00:40:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1604900400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=34/2MRWfTyWG8ZP4g/XezsD3HH2sUX3HW8pakpii2+s=; b=JjCQ+EityrIqUZ0Q19ZAIAf8YpQw7vGHUsYqRjv510/YMyicXDN0IhxWoAL7UFV7SL18Hy W4RrKaZuJTtPmb8J9o5VmSLHL+DSP4cNXYiXLvvt4tQVz2zgGhpLFOER43KgsK4QpR5PTA 8VMBLlEHoTfAL6ePTnXh5n9L0CjtIQc= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 77BE9ABD1 for ; Mon, 9 Nov 2020 05:40:00 +0000 (UTC) From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/2] btrfs-progs: add new precaution check for incoming subpage support Date: Mon, 9 Nov 2020 13:39:50 +0800 Message-Id: <20201109053952.490678-1-wqu@suse.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org For the incoming subpage support, we need to ensure no tree block could cross 64K page boundary. Currently both kernel and btrfs-progs won't create such tree blocks, but still add such check as non-critical warning to catch any ancient btrfs in the wild. Also enhance the existing test cases to catch the warning message just in case we miss something. Qu Wenruo (2): btrfs-progs: check: detect and warn about tree blocks cross 64K page boundary btrfs-progs: tests: check the result log for critical warnings check/main.c | 2 ++ check/mode-common.h | 18 ++++++++++++++++++ check/mode-lowmem.c | 2 ++ tests/common | 12 ++++++++++++ tests/convert-tests.sh | 1 + tests/fsck-tests.sh | 1 + tests/misc-tests.sh | 1 + tests/mkfs-tests.sh | 1 + 8 files changed, 38 insertions(+) -- 2.29.2