Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp923471yba; Wed, 24 Apr 2019 11:51:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFnthvC26tYqrMyAHkOPay+mx5uf+k8IV7v7673vPTP80tZiEOhw6PQlPryII3gREeHGqu X-Received: by 2002:a62:be13:: with SMTP id l19mr35715844pff.137.1556131885944; Wed, 24 Apr 2019 11:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556131885; cv=none; d=google.com; s=arc-20160816; b=YaIVNMgk9PcPcOvgwzoqNkHUbxrkcUICeAoX0a/uWhGAJQ1jz8IqJx2UTmlz+BweIY D5nxkO+afasIKY9O+/WjxmLgUgkgJR0aOF5ZT8AATNSOihA6UvLryvRYmxatIlK7dqs6 rpojJFT9zIcVZ3DeEYTgDP0R5vvRL2dMhnveQ/969qniRvObEAsjPTx67KgXd9mOQPNC 295d1s1e10DXWVSQbq5+eYkofYROm++O073XG2gOXfseDIT5rrOl9JvxoVUJA824MVBy exujvlCGFpiSDPI38C41OkxC89YoKnZqQQ+k7XCOxx60yuVyeQSlcgcmVgm97L/qT7bc 46qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/wGK5Ub5N8HF3VeoujLt1WRTNlmtW8D+nRF2cORxNps=; b=amKi0Qvd0WYJcAYGpTc5OLhHu80D92mPgs9d/xf+TisMTUwxcrTfWhXWRmc2738QkY yUJ1gSo26x1LYiDQmXHDlDrGhHw6UCw0vZc/wz9GVfZ8iSVAImaBVA5vOAx8Srs4yAlB zj2LSvqnqaGD04um7hNFus7vF1UHl2F3NnXR0ndqR4Mq9SjSWGQEpybLU2PvWkIJlxZK bvYo9q6HQ40vgN3s61MRQmT/djQhCXIqXJkVdfG4IZyLe9SNCMai9nSYlkhGIlRkt5/0 R10zJR2tY++LvDcGr+d3Reutbtntrg/WQV09d+DrglzSPS+PWk/AZ+fULLl+bpTtOpH/ Csdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XLUWNS1i; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si18759298pgl.335.2019.04.24.11.51.10; Wed, 24 Apr 2019 11:51:25 -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=@gmail.com header.s=20161025 header.b=XLUWNS1i; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728277AbfDXLnl (ORCPT + 99 others); Wed, 24 Apr 2019 07:43:41 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:44428 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbfDXLnl (ORCPT ); Wed, 24 Apr 2019 07:43:41 -0400 Received: by mail-qt1-f195.google.com with SMTP id s10so9007526qtc.11 for ; Wed, 24 Apr 2019 04:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/wGK5Ub5N8HF3VeoujLt1WRTNlmtW8D+nRF2cORxNps=; b=XLUWNS1ir3CSFZwxFamJXa8kDbaOO7GcRGFi/VpkVZyIlRvlUWJeptzewiDa8Tqkyg SXZr+0UH5fmHNo3MH/0hb2cAv8vDSLfN7nvDBd4r++C3oLW7CTYUe1TZW/oS11QpV6hM hmySWpY+xJGI/A7354hN/C4QbBiUR1NWgUT7bH5KZM8XOAnD4crzG6QyLMmCR39I2AeQ hCRn1CyUJNf77nSCm0gCtYqqsZj9upC/X2TD60Zybn5mB0FyV8dOLQe5Keuwq0t4xAFE rZ8J7dg3QNYQexFBZrqaHCGiG2VWZeXuR19oiHShK/1sMdY1sZArP27CwXBXZgyjZ666 ASlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/wGK5Ub5N8HF3VeoujLt1WRTNlmtW8D+nRF2cORxNps=; b=dm4ELpmPZHqQHA2l1VTyjruxp0X8BsLaw6GAIa5lAJp9n1tHdj9JoH3Ozfzwm+SBVN QI4dIWW6V/CeVh4CLkHTwD87Ish0UO5u9/xpbv89CckbRUL+uGOcHDkC9MlQh4f9aLeE DdFv2VLAUqaPJ/P3stTxrvoiGNaUqmhaY3mWNe5e6Co6jb79nMDL/PzT/JXNHIETDjac CVKEE14p5533ANZuqYmTu/AAYKddm0pon8uyIRJtC6/JTICYOoNZqqDczLQ93D2GTdJM H00FcIhwq2vRtOGuQnJ/WkvGAFTzR6ZmsB4MwkMo8HHqPti8V+CJ+/h/F8kPulAwRMSf v1XQ== X-Gm-Message-State: APjAAAWLVBrEFIPq+paVxpt9bgq6A04axurLMWNp+DnFos/nAoah+FJ7 Y9dtF+lWmrVxQ9AKBs7Z6bx6MjqsydL8JvmCTXg= X-Received: by 2002:ac8:4603:: with SMTP id p3mr18745290qtn.4.1556106219897; Wed, 24 Apr 2019 04:43:39 -0700 (PDT) MIME-Version: 1.0 References: <20190422093353.61014-1-yuchao0@huawei.com> <20190422093353.61014-2-yuchao0@huawei.com> In-Reply-To: <20190422093353.61014-2-yuchao0@huawei.com> From: Ju Hyung Park Date: Wed, 24 Apr 2019 20:43:29 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: relocate chksum_offset for large_nat_bitmap feature To: Chao Yu Cc: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chao, On Mon, Apr 22, 2019 at 6:34 PM Chao Yu wrote: > + if (__is_set_ckpt_flags(*cp_block, CP_LARGE_NAT_BITMAP_FLAG)) { > + if (crc_offset != CP_MIN_CHKSUM_OFFSET) { > + f2fs_put_page(*cp_page, 1); > + f2fs_msg(sbi->sb, KERN_WARNING, > + "layout of large_nat_bitmap is deprecated, " > + "run fsck to repair, chksum_offset: %zu", > + crc_offset); > + return -EINVAL; > + } > + } > + I try not to be a Grammar Nazi and a jerk on every patches, but since this is a message a user would directly encounter, I'd like to see a bit less ambiguous message. How about "using deprecated layout of large_nat_bitmap, please run fsck v1.13.0 or higher to repair, chksum_offset: %zu"? The original message seems to suggest that large_nat_bitmap is deprecated outright. Also, 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. Btw, what happens if we use the latest fsck to fix the corrupted image and use the older kernel to mount it? Would it even mount? Thanks.