Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7203018ybi; Mon, 8 Jul 2019 16:50:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8cUIHHYMFbpZhktFOaQTlD0XGMifBP2xA0WNZiv1VdbvkKw2dK5gXPz154QJRbgtpCARs X-Received: by 2002:a17:902:8649:: with SMTP id y9mr27615249plt.289.1562629857223; Mon, 08 Jul 2019 16:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629857; cv=none; d=google.com; s=arc-20160816; b=dX0KZFjeGLNY8x8ZVUJf+TBwCsSkLdtxfh6LyHrd9WMhvnmDOyEFEdhrmvG6JTRob3 kSugcJpAyr6dBucpMfOUICYgBAg95iL6CLSA/z5N5PA7CkS5edPpiqmnpz4BupcfnzSp kvnFbgYHq2/wH0uep6hGXAEt/7FzAUAVi6mBEzFQa0pgD3xhe2xLwbc8iEK6QfdbxdMj MGV/3OhRnhJCF7MPT+17z9ZfsJIOD0ozXaAt+nH0D3nDwxiYmLQj3zc4r6bV3gsgKAaa lvHObV+g+WFvp1sVRV0erUYw/BJl9gyG3RZE7j1UmiUg9Bq4DdlxNeK3uVxeD0bVYCdw ZDnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8BdKv2X58uXZmSHtXLxVrAZoOPWoQuH/3pfl7NLosFY=; b=qgxLtCP31XW9+kPh4oizbEStsC7ZYoNliwF2rCQFpKOjYqJjgxTx+LPstWZHxNurNe W372fGP4KZmFVEpe6xdvC+/dVSxMhsPrFvXGk+Myt7jWhlh3fAe8zew/28Iyr7NPjmHR EOtw0JyK7ZJpXDJv1Am+Bd5JGZMQppPN8lVd1H9gvwr0BA224KCbJX8pV8/BlwYHvyRv eR92RiOGFlOwHKC/vpu/aEjW/t8g5aaOhJdN+SipxFO/7gnxeGI3SMlP5OUWWm3/ZYN0 btkYSaSJhcBeq3QahcBxoYgz0/Sh5y9b6zR7V5V6DhTUksvaDQVayaCtSXWzKHO8m2I9 96EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2hrPj8nt; 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 d3si19589815pfr.42.2019.07.08.16.50.42; Mon, 08 Jul 2019 16:50:57 -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=2hrPj8nt; 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 S1725935AbfGHXrp (ORCPT + 99 others); Mon, 8 Jul 2019 19:47:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:58574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfGHXrp (ORCPT ); Mon, 8 Jul 2019 19:47:45 -0400 Received: from localhost (unknown [104.132.1.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5311620693; Mon, 8 Jul 2019 23:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562629664; bh=Cz5Bx6P52fodwps54BhyGetegFSXmNne2sxJp0+kASE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2hrPj8ntVZhpY8EJmqztIJVe4GDZIvrObL6mQjFwHM60cbL8gV8ih/A8XoBNflH1r jgijOIzbrDZfQmWJQOAMCje499k4rfwS6Jvp7Cwrw/dAZVszqkFrqlsMv6RvqEalLP fs8lW7zYwmNfhJl0VXqTH6rbWPsDFiXp5IB/rR8s= Date: Mon, 8 Jul 2019 16:47:43 -0700 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org, Park Ju Hyung Subject: Re: [PATCH] f2fs: improve print log in f2fs_sanity_check_ckpt() Message-ID: <20190708234743.GC21769@jaegeuk-macbookpro.roam.corp.google.com> References: <20190708062912.104815-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708062912.104815-1-yuchao0@huawei.com> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > le32_to_cpu(ckpt->checksum_offset)); > return 1; > } > -- > 2.18.0.rc1