Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E943C74A5B for ; Fri, 17 Mar 2023 09:17:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbjCQJRo (ORCPT ); Fri, 17 Mar 2023 05:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbjCQJRn (ORCPT ); Fri, 17 Mar 2023 05:17:43 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBFE5C9DE for ; Fri, 17 Mar 2023 02:17:29 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4PdJS53S8dz4f3lXK for ; Fri, 17 Mar 2023 17:17:25 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.170]) by APP4 (Coremail) with SMTP id gCh0CgAHcLMcMBRkQ24kFg--.44440S4; Fri, 17 Mar 2023 17:17:27 +0800 (CST) From: Zhang Yi To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, yi.zhang@huaweicloud.com, yukuai3@huawei.com Subject: [PATCH v2 0/3] e2fsprogs: journal cycled record transactions between each mount Date: Fri, 17 Mar 2023 17:17:13 +0800 Message-Id: <20230317091716.4150992-1-yi.zhang@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgAHcLMcMBRkQ24kFg--.44440S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZw47XFykAw4DCFyx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ger.kernel.org From: Zhang Yi v1->v2: - Remove the document about journal_cycle_record mount option. Hello! This is the e2fsprogs part of the ext4 journal cycled record transactions option feature(corresponding kernel part is at [1]). It add a new parameter to record the journal head of a clean filesystem, mke2fs initialize it to the start of journal area, and e2fsck check and fix it if it's bad, and also update it after recovering journal. Passed functional tests. Thanks, Yi. [1] https://lore.kernel.org/linux-ext4/20230317090926.4149399-1-yi.zhang@huaweicloud.com/ Zhang Yi (3): lib/ext2fs: record and show journal head block debugfs/e2fsck: update the journal head block after recovery debugfs/e2fsck: check bad s_head block number debugfs/journal.c | 10 +++++++++- e2fsck/journal.c | 15 ++++++++++++++- e2fsck/recovery.c | 21 +++++++++++++++++---- lib/e2p/ljs.c | 3 +++ lib/ext2fs/kernel-jbd.h | 6 ++++-- lib/ext2fs/mkjournal.c | 1 + 6 files changed, 48 insertions(+), 8 deletions(-) -- 2.31.1