Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp163599ybl; Wed, 21 Aug 2019 16:50:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuxq49AdDAfca98qI9mXxNb599ljW7A0qX2HK6SFaUOgijiPcJjBMns+bg/+OblbPyex9j X-Received: by 2002:a63:8ac4:: with SMTP id y187mr32001024pgd.412.1566431451231; Wed, 21 Aug 2019 16:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566431451; cv=none; d=google.com; s=arc-20160816; b=TVfSmKjzj6H+sgWalRN9qz9FVN0F0VexHgIYR34XcaP7uDrZWpobWfzvZA4Ko3V3Rp ZFCQmoNHwccgl5TDY7yvWEUS5WirZSB/phek6xav+yeNik6OGQCZcgII+GxbDCFIdiKl 7mOoZOltv1XRVmUViB8KlW1zIfQBZLejRLHeR45jBuwjj5iL/gDYMY7hpkNAAAOJx2KC xGV3lRynrx0hkY8nhAOuXpQ6FmOdla3nZqXjxjY0gczQAptjVNdc9uBv+EqK2zrGCtmH 3t7Q28VG5dYzetodTfP7WP30gUjLzYL8OFcrrWA+OITUx5eV6cGR2i4ZyV3gxLaE2KZP 4olA== 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=as+yRgvr59Q4Mb1Ow5BUWgU6I3h8mr1OBmVUpM5VRtE=; b=f8+dD0gR3dCJcBOPuvS1oJsX655wPZwVR4vodtpxf9ybIIxzQ8ZjjC6g/m1NpMQ+U2 YRKbOfvedUd3E2CNgTvCMgoq7C2IUdVvIWfCE8KcISWrt4Czq+sSIJNGnlP9B4ezre6z EK7XdEKr1IAXedjMr8sZH6WaU5NmSn4HxskKKpFfU0v5xTLZ0oEbeDMPDOG1KDV5Sumh jjDRYdSSctflznC7d5OTMEieZtPl8hVe1p6OS/pGhf3AipLVGV8ePl1VOCE/+AmHdOkh xtgx+4DODRwO2gR4y812BZNUIIw5AsuHyxQUh9l87Y+nMtU/nha7M0D1sP3Lw54VIEwK xp4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b="Zl4j/lIS"; 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 v184si15455905pgd.278.2019.08.21.16.50.36; Wed, 21 Aug 2019 16:50:51 -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="Zl4j/lIS"; 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 S1729070AbfHUWDO (ORCPT + 99 others); Wed, 21 Aug 2019 18:03:14 -0400 Received: from sonic308-18.consmr.mail.ir2.yahoo.com ([77.238.178.146]:46513 "EHLO sonic308-18.consmr.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728502AbfHUWDN (ORCPT ); Wed, 21 Aug 2019 18:03:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566424991; bh=as+yRgvr59Q4Mb1Ow5BUWgU6I3h8mr1OBmVUpM5VRtE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=Zl4j/lISQARmPg+8JlHaIzDCuSFsNdiFqs4Pk0IFt6sBVxbfh+A1e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_gpQVE92x80jKxu_iotv1XJcL19daxU2z.PKTO1VuAkLvc S3Pz_PVzNwWt_Jqlzx2cF9GpuqnrJcXujVSItmyU3X0YRdbvoAqwRCmiagTzTpGppDiVDqs4LFpC yGPMisnOnIrjHmODjJfQgRcZXyVDHUMmlumd9HSk9JbNR0rAGFzBwANV56DerpbSLkOvSGRMmZcu .wkQNNlbddSSut6_vM48tce6hKu4HJFlV.syvJw6YzDCJw4FXmSFeMZW0EgoYwVH_Lf1231zOoW9 0ZSwxynFBLXRC6bpRydQ.C66DfDJDAgQIho3In_zo7qmEGcy0q5ofxu_jFBMgEUlpczwPiq1Sjdt 38ci8aJxoHg6dwWlTTcFC2zimn79lN_4uCQJ6ml6RYFTKH256PCO0Q2E5QAU8DPIUeSbfF_J.w9y iCEfgfZlZrRymhxE1jRAFrLbpEq_7UdZ2lm7qdVPJAnrGoKFyg5P_NCUOw2DXiHy897xyd4fZQ1E 3ajWf8suHEE6IkyEEm13nhbe8qjlIcQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Wed, 21 Aug 2019 22:03:11 +0000 Received: by smtp432.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 148febfba35ac7974540a5f89d49d2fa; Wed, 21 Aug 2019 22:03:10 +0000 (UTC) Date: Thu, 22 Aug 2019 06:03:03 +0800 From: Gao Xiang To: Richard Weinberger Cc: Richard Weinberger , linux-fsdevel , linux-erofs@lists.ozlabs.org, linux-kernel Subject: Re: erofs: Question on unused fields in on-disk structs Message-ID: <20190821220251.GA3954@hsiangkao-HP-ZHAN-66-Pro-G1> References: <1323459733.69859.1566234633793.JavaMail.zimbra@nod.at> <20190819204504.GB10075@hsiangkao-HP-ZHAN-66-Pro-G1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Aug 21, 2019 at 11:37:30PM +0200, Richard Weinberger wrote: > Gao Xiang, > > On Mon, Aug 19, 2019 at 10:45 PM Gao Xiang via Linux-erofs > wrote: > > > 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). > > Good. :-) > I suggest to check the fields being 0 right now. > Otherwise you are in danger that they get burned if an mkfs.erofs does not > initialize the fields. Sorry... I cannot get the point... super block chksum could be a compatible feature right? which means new kernel can support it (maybe we can add a warning if such image doesn't have a chksum then when mounting) but old kernel doesn't care it. Or maybe you mean these reserved fields? I have no idea all other filesystems check these fields to 0 or not... But I think it should be used with some other flag is set rather than directly use, right? Thanks, Gao Xiang > > -- > Thanks, > //richard