Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3185959ybl; Mon, 19 Aug 2019 13:46:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt27fYLyjYnl7Sq0EKjTbuDmrZFZQw1TXFUp0jw8QXYOoHTkyr7HlVnUBHowwWTdEPnjyE X-Received: by 2002:a17:902:20e3:: with SMTP id v32mr23422597plg.142.1566247579073; Mon, 19 Aug 2019 13:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566247579; cv=none; d=google.com; s=arc-20160816; b=PnxKbecN9HTr/NHCZBuZHPuAmnv3muU6KupTmulHVtDWUDlmYpiawoa8lhvPQkJCv7 +H0qXL7o7b101Oe5RmOVEfVi7NkcH9j/da4Nb7ujPdpUoMOwbGHVpr/GGXfAWcjXROl/ YrN/OFYDVDPCf6AzrYyq+y11tC30fJQxSbdeBrnIkPK663Cyjdm93dEcJKQaytsCrOmH o/V3KBfwtyVTc0Mv+erZmZRUsoHemSAUEOuH9F21MKf04Yn4XZGiBwWn7NqlXkZlJ+o5 yoTwdgGR7lQHPJ0M7P/z8krqaJmiKcx2vssQgF8m2CnhBXgydB4AbE71v9fnJK4KPfS+ qGhQ== 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=/FjyeBf66fBZlR8Gaqo2Oupc6SxE7IKBQvqIGSvJQNw=; b=d6lcJiv50JPtMGz3qhQfOJiJry+sklEZVtMeC+evryj+5BiyO51QfspLLKxkEuxI4l XrjNTrUcaMmXig8qLLh1q549erNLm4jfGHk+MlndhayO7ffumpPNvWVI+fvCMAbeI22F aN7S46fPZBq+ScE4b6nC62Tly5E3n4FDJxF1k7hD2apKY8yfBbQEjjk0K3fobbVve9d6 hFDivFVm9RM510C4Dqytrc0i59TenV3GamZy0J9ch/l/LTpyBv7UAsoPr7aeQxZ6MKdD Eaf0m271PwbFpqo8ziaM2PqjWPsA4/QJkLHfCWwmJHTnXZh315wBvHJL/ooaKTSefq9I fBVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b="iMv/2qUZ"; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si10643599pls.420.2019.08.19.13.46.03; Mon, 19 Aug 2019 13:46:19 -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=@aol.com header.s=a2048 header.b="iMv/2qUZ"; 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=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728302AbfHSUpP (ORCPT + 99 others); Mon, 19 Aug 2019 16:45:15 -0400 Received: from sonic310-21.consmr.mail.gq1.yahoo.com ([98.137.69.147]:36558 "EHLO sonic310-21.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727980AbfHSUpP (ORCPT ); Mon, 19 Aug 2019 16:45:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566247513; bh=/FjyeBf66fBZlR8Gaqo2Oupc6SxE7IKBQvqIGSvJQNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=iMv/2qUZXCZBDhq8bD3TkgK5G7xiq8jYuD4xJuM0CVldIsTESdO23NRqKZ6P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upB9stVmfL.FBr5ri6HBBy7jYg92wJDNj3hPTJG14LkGpDH HwKWzYbBXj9YpARUsbrpxoDYagTk0LCoLMvXJxqSxIl6KrSzRZa4WTAGCWq4K.E9osQgFqP.Fvdm HYbwPbZQDvCyykJN4EGyL6CsBuZnoif0SBJbxu4cHSa1lFM0OxvuqXzs9iSFIrOtDacTskJiO126 KoXZZKCjH2AW3Vqwm7vUoVDAx.YMJcQCFO8zrJUCrW3NbiS4M7lRXCk1eDVtOgMO2lprg_GkE0T9 kKzMwNgS0R0E818h_gvx60LaCRyiFnmJKWCC.iRA0FHbveGLL02xNsNToezK_1OrN9jUPg3TtqfH IjBW_m.B9_FFE8NKAXNffEWHkbd2hb9FPPQOJhcrCJEmz0YyQ1WP6_vN7VXC97laT9lYGlL2QiQM hfJKsli7.MTTYQ76DEs2VRhRQpRbOJjKgE9r7axRCOb7pV19B3m0s4pRSk21gJB.PP8dh4_AfQh1 6I9QYgXkTO71tlERe.dY4bg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 19 Aug 2019 20:45:13 +0000 Received: by smtp424.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d4e306b9ca70839f217535bade4a91d7; Mon, 19 Aug 2019 20:45:12 +0000 (UTC) Date: Tue, 20 Aug 2019 04:45:08 +0800 From: Gao Xiang To: Richard Weinberger Cc: linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel Subject: Re: erofs: Question on unused fields in on-disk structs Message-ID: <20190819204504.GB10075@hsiangkao-HP-ZHAN-66-Pro-G1> References: <1323459733.69859.1566234633793.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1323459733.69859.1566234633793.JavaMail.zimbra@nod.at> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On Mon, Aug 19, 2019 at 07:10:33PM +0200, Richard Weinberger wrote: > Hi! > > struct erofs_super_block has "checksum" and "features" fields, > but they are not used in the source. > What is the plan for these? Yes, both will be used laterly (features is used for compatible features, we already have some incompatible features in 5.3). > > Same for i_checksum in erofs_inode_v1 and erofs_inode_v2. checksum field apart from super_block has been reserved again for linux-next. checksum in the super_block still exists and will be used sooner. The reason I discussed with Chao is since EROFS is a read-only filesystem, we will develop block-based checksum and integrity check to EROFS in the future version. It's more effectively than adding such fields to all metadata (some metadata is too large, we cannot calculate a checksum for the whole metadata and compare at runtime, but we can do block-based metadata chksum since EROFS is a read-only fs). > > At least the "features" field in the super block is something I'd > expect to be used. > ...such that you can have new filesystem features in future. Of course, "features" is for compatible features, "requirements" is for incompatible features. Both will be used in the future. Thanks, Gao Xiang > > Thanks, > //richard