Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7449110ybi; Mon, 8 Jul 2019 22:11:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNcmb7Toj+5rIPqQYO+m6dxyPOVoOcCAX6W5Rwh2cJIrKOYVZW+kf5W0dnFVAQY4Gro5HG X-Received: by 2002:a63:7887:: with SMTP id t129mr28698558pgc.309.1562649119641; Mon, 08 Jul 2019 22:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562649119; cv=none; d=google.com; s=arc-20160816; b=i4w66hNxuxwGQGLO8Fvv6ZcCaLx8pLxPiQxR267K9onHjUYGPIdK5On8XeGJzGkWe8 Y8f04ab2zslfOmNu1yyrswz87bcWzy/2L7sD7y5yw9Q/LfrESTy/4VlqtHduwgQJExB3 o4uzNulHDVhXcRRot39zTIhLizfC9GfyARIzZ38RRUEiePr96yBDS/jeeUPF5usF04FC MDJ1wUdCOoseqJrmHhKLvjRImKu6SlkS384EAOJumESuScGHqIfzLYKu/gg2IJF7pPDj KuJ7+V/hiaZsuJ1yXlgY6dLtiThIaVa5KPMzyoVevJzjECFvR/JWnn5VmuKs3rniBr00 jb9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=d3QY9wXch30Wmd8VQcryubmIZgUYWkxlkHyfkd5f+VQ=; b=oWq15OEfYwfL5pGfF/ZiL/12wN9oYYfPQxdkPqq3vqMF6Me+VQlMDh12XWMaNU9LDX QvAYNe9GxQieFbsE6A4rjI6N9BQ8sm4aB1izKKCBxVeuy770hw8la3aXV2+J/8E2iDaP n3TDoJtumh45wISYAOm2MGAT1rGbFK9NTiAXaf33h7U00y4QkXoJqFK5BKrOYOxj9ibz Dp/cDtnI4mSTkXpa8jBnaNLh4iVlxNBj5quRk7H7EJ4tAfPx3vdMIwxKl88b50TC3TFf FMAB5D/zeBYvFOQqSkj3CSqo9dCD0GYnDIn+OcnzaH/XF0fY9MzdAZcl3+MLLNWsSPpy d8tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0boYBNg1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si21297279plc.217.2019.07.08.22.11.44; Mon, 08 Jul 2019 22:11:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0boYBNg1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbfGIFLO (ORCPT + 99 others); Tue, 9 Jul 2019 01:11:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:41308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbfGIFLN (ORCPT ); Tue, 9 Jul 2019 01:11:13 -0400 Received: from [192.168.0.101] (unknown [49.65.245.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4164E2166E; Tue, 9 Jul 2019 05:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562649073; bh=9a0/TdkdAwOfuiX8hAnAaCfx0WMSxTnhXh1MNmLUKnM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=0boYBNg1LeeIlzWKJ7/LVu975Uykz8MHdNdYWn59kwhOmWM8N2r/jV4lo4skyTe5j UWfH7+iCuKgAjD5lDk6X6Mp99bWvmiHHonzrfuy7dKDsWiJ+Psp4CogCPF8OiBwzUx aYl0n/8xlwMfDr5klGYA6scd1Ma1f4rMpxayz90g= Subject: Re: [PATCH] f2fs: improve print log in f2fs_sanity_check_ckpt() To: Jaegeuk Kim , Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Park Ju Hyung References: <20190708062912.104815-1-yuchao0@huawei.com> <20190708234743.GC21769@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: <2d0f938a-94d2-2c1c-9c80-aa7a1c0dd4bb@kernel.org> Date: Tue, 9 Jul 2019 13:11:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190708234743.GC21769@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-7-9 7:47, Jaegeuk Kim wrote: > On 07/08, Chao Yu wrote: >> As Park Ju Hyung suggested: >> >> "I'd like to suggest to write down an actual version of f2fs-tools >> here as we've seen older versions of fsck doing even more damage >> and the users might not have the latest f2fs-tools installed." >> >> This patch give a more detailed info of how we fix such corruption >> to user to avoid damageable repair with low version fsck. >> >> Signed-off-by: Park Ju Hyung >> Signed-off-by: Chao Yu >> --- >> fs/f2fs/super.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c >> index 019422a0844c..3cd6c8d810f9 100644 >> --- a/fs/f2fs/super.c >> +++ b/fs/f2fs/super.c >> @@ -2737,7 +2737,8 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) >> >> if (__is_set_ckpt_flags(ckpt, CP_LARGE_NAT_BITMAP_FLAG) && >> le32_to_cpu(ckpt->checksum_offset) != CP_MIN_CHKSUM_OFFSET) { >> - f2fs_warn(sbi, "layout of large_nat_bitmap is deprecated, run fsck to repair, chksum_offset: %u", >> + f2fs_warn(sbi, "using deprecated layout of large_nat_bitmap, " >> + "please run fsck v1.13.0 or higher to repair, chksum_offset: %u", > > How about adding the patch name as well? For end-user, I think they don't care about commit id or patch title... But anyway, let me send v2 as you suggested, either one is okay to me. Thanks, > >> le32_to_cpu(ckpt->checksum_offset)); >> return 1; >> } >> -- >> 2.18.0.rc1