Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp764749ybe; Mon, 2 Sep 2019 08:48:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7vNJowxV6z3ahrB2kneo8tqmr18HTUjB6eSk300mLAvhbVxwOhdgwHhfDgkEKsaWdL3Ow X-Received: by 2002:a63:4b02:: with SMTP id y2mr25185555pga.135.1567439299973; Mon, 02 Sep 2019 08:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567439299; cv=none; d=google.com; s=arc-20160816; b=jea685V2r7mJW1+u4eZSipMcbI0LML2Gy5iUctW3RQ+pmuuieptMeve58JXA/Z+OON rxF6K6Xv9qElpDF2IULYmQF4d1xQz7K3tD6nqCHgsc+5xVw6cwVjgnn7t3mPUC8IiEgE bkVy06Y0HEObfgZ8+H1ls8hosGokxofYMkaE6l9lJ1+e0h72F9q4FI0IuMsveO0gXehL O1qLx7BCqSIfhG03Z6zm+2UA65Y/8E6aanBFXbVrVRFwdd2k+y+KlJCiw5XAblUsdfUY /dYPLtO6V2wfuBEB3appuUuczQeS9OOV2QNf2bsjF7AY2gm6Q/thFeBvnNuE/VY35h8k W1SQ== 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; bh=PhsSkIeFR9JIEHQ68dcROYDS94OgxFP1VQFye+VGgCY=; b=dZHy2+jahczaxC3ZLtuvP3Nob09fVzw7EsbCvToo1mDoZ/bZnFqT8/Cj+UWNx4kcua btphBDrkvGzg3H4P077mybuhRuECu8yc7UQJ44mUxbRUML64FFUnrKAOUdBekX2B/RhY M3EKDx2iYUfmy/H8JKmoWIzvPIKq4Wz3Qli9RIUUlmOox7LnoDPUmwTfYND5SaC/Bx0S FDBTb/jdQgaVyfG8mTnvn3bBPO4xtIy9mbyD2b4WQ1rNluqfZrXnXsZjtk3L9M+2mMxV 6ZINvLKi5f1BaUOnuve4pZeEO5sLJ9qcKl8CJ1DXX3ncDCPgdH5PbrsRjheSAEVBKKRl 6OCw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si12217502plz.346.2019.09.02.08.48.03; Mon, 02 Sep 2019 08:48: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726214AbfIBPqB (ORCPT + 99 others); Mon, 2 Sep 2019 11:46:01 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:54408 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725886AbfIBPqA (ORCPT ); Mon, 2 Sep 2019 11:46:00 -0400 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 63347F3EFAF56709ABD5; Mon, 2 Sep 2019 23:25:44 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Sep 2019 23:25:44 +0800 Received: from architecture4 (10.140.130.215) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 2 Sep 2019 23:25:43 +0800 Date: Mon, 2 Sep 2019 23:24:52 +0800 From: Gao Xiang To: Christoph Hellwig CC: Gao Xiang , Jan Kara , Chao Yu , Dave Chinner , LKML , Miao Xie , , Stephen Rothwell , "Darrick J . Wong" , Linus Torvalds , Amir Goldstein , Alexander Viro , Jaegeuk Kim , Theodore Ts'o , Pavel Machek , David Sterba , Li Guifu , Fang Wei , Greg Kroah-Hartman , , Andrew Morton , Subject: Re: [PATCH v6 03/24] erofs: add super block operations Message-ID: <20190902152451.GC179615@architecture4> References: <20190802125347.166018-1-gaoxiang25@huawei.com> <20190802125347.166018-4-gaoxiang25@huawei.com> <20190829101545.GC20598@infradead.org> <20190901085452.GA4663@hsiangkao-HP-ZHAN-66-Pro-G1> <20190902125109.GA9826@infradead.org> <20190902144303.GF2664@architecture4> <20190902151910.GA14009@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190902151910.GA14009@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme710-chm.china.huawei.com (10.1.199.106) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, Sep 02, 2019 at 08:19:10AM -0700, Christoph Hellwig wrote: > On Mon, Sep 02, 2019 at 10:43:04PM +0800, Gao Xiang wrote: > > Hi Christoph, > > > > ... > > > > 24 __le32 features; /* (aka. feature_compat) */ > > > > ... > > > > 38 __le32 requirements; /* (aka. feature_incompat) */ > > > > ... > > > > 41 }; > > > > > > This is only cosmetic, why not stick to feature_compat and > > > feature_incompat? > > > > Okay, will fix. (however, in my mind, I'm some confused why > > "features" could be incompatible...) > > The feature is incompatible if it requires changes to the driver. > An easy to understand historic example is that ext3 originally did not > have the file types in the directory entry. Adding them means old > file system drivers can not read a file system with this new feature, > so an incompat flag has to be added. Got it. > > > > > > > + memcpy(&sb->s_uuid, layout->uuid, sizeof(layout->uuid)); > > > > > > + memcpy(sbi->volume_name, layout->volume_name, > > > > > > + sizeof(layout->volume_name)); > > > > > > > > > > s_uuid should preferably be a uuid_t (assuming it is a real BE uuid, > > > > > if it is le it should be a guid_t). > > > > > > > > For this case, I have no idea how to deal with... > > > > I have little knowledge about this uuid stuff, so I just copied > > > > from f2fs... (Could be no urgent of this field...) > > > > > > Who fills out this field in the on-disk format and how? > > > > mkfs.erofs, but this field leaves 0 for now. Is that reasonable? > > (using libuuid can generate it easily...) > > If the filed is always zero for now please don't fill it out. If you > decide it is worth adding the uuid eventually please add a compat > feature flag that you have a valid uuid and only fill out the field > if the file system actualy has a valid uuid. Okay. Will do that then (as a note here). Thanks, Gao Xiang