Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5716219rwb; Tue, 17 Jan 2023 18:01:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuSGQKB3Hr0s5INctu67yDHwKIDGX5wzlQ2LPVTrYPo2SoFpbFHSDTZNGTJVcaH6dix1gwD X-Received: by 2002:a05:6a00:856:b0:57c:2ab7:2c0b with SMTP id q22-20020a056a00085600b0057c2ab72c0bmr6243362pfk.28.1674007297360; Tue, 17 Jan 2023 18:01:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674007297; cv=none; d=google.com; s=arc-20160816; b=RsFZqVcDnoljiEtLaOqXh/ZTDofChQTzUko2auKWr2myKIZEnJ8/6aIvswoP/OaoPb SD26Es00FEGn2pqR8Ysk97c4/ZE2s74qt4ZODCG/tTDXkNSL2+t7K1kcp+WWHudNU6Nj PoLxYsFDKfmgywjJYgjgqAxYbZ7bQp0B2RTxDt0ohvtcBp/2EjXUeDILvLvccogMmzvs PRdUTHkdxBjX7KG08Eu+jgF1eaP7QOHEoyAbqnczfm0eU40lBYUWIpDiTz65+zvij2qq IgZBWIAGHJSQNDJNEdXLDwrpzWxn3QvvQe60Rnjr8dfFxtupfwvcbMKCnthM3FJfwPq6 tVOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=u2iQs1SVTyaOLh3DdP63AayNzRDcXR4HObIGCMxn/S4=; b=0Dr9BvlAAuVjh6RyrbPb3cIkrtnSb9Ht7Vj0CDH6Ctmta48W127IksFojtg5Z35UAB dADBPB/CTh3VfWNXwxVqeJKqVxDfnzh316H6peb65Y+J2QuZb90pMbKXylEZi5vWbRxa wIFrO3ntf3q4BP16mFWs7vWDFtgfLzfQGBToxmbUuMEaF2pdrj7/oh04kvOeS2848aKS mK8VjmTzZbp3xuV4+yp+ej+Caj3tOjpMzyW9U3044fPQrBfDxmDrpNlcsplsofB9PhOw EH5d+OejTZ1648aDEiGF+n+Wx7sE7+XsR/ip1rTp+IPXzUtCXEERAdhcobwyznWf/lHc BJLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d62-20020a621d41000000b0058c57e2d56bsi11252432pfd.318.2023.01.17.18.01.31; Tue, 17 Jan 2023 18:01:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjARB1n (ORCPT + 46 others); Tue, 17 Jan 2023 20:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjARB1f (ORCPT ); Tue, 17 Jan 2023 20:27:35 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7738638669; Tue, 17 Jan 2023 17:27:34 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VZoS7M5_1674005249; Received: from 30.13.162.1(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VZoS7M5_1674005249) by smtp.aliyun-inc.com; Wed, 18 Jan 2023 09:27:31 +0800 Message-ID: <0aaac76f-74a0-f6f9-089f-636b38a2bea7@linux.alibaba.com> Date: Wed, 18 Jan 2023 09:27:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 0/6] Composefs: an opportunistically sharing verified image filesystem To: Dave Chinner , Christian Brauner Cc: Giuseppe Scrivano , Amir Goldstein , Alexander Larsson , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , Yurii Zubrytskyi , Eugene Zemtsov , Vivek Goyal , Al Viro References: <0a144ffd-38bb-0ff3-e8b2-bca5e277444c@linux.alibaba.com> <9d44494fdf07df000ce1b9bafea7725ea240ca41.camel@redhat.com> <2856820a46a6e47206eb51a7f66ec51a7ef0bd06.camel@redhat.com> <8f854339-1cc0-e575-f320-50a6d9d5a775@linux.alibaba.com> <20230117101202.4v4zxuj2tbljogbx@wittgenstein> <87fsc9gt7b.fsf@redhat.com> <20230117152756.jbwmeq724potyzju@wittgenstein> <20230118002242.GB937597@dread.disaster.area> From: Gao Xiang In-Reply-To: <20230118002242.GB937597@dread.disaster.area> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/1/18 08:22, Dave Chinner wrote: > On Tue, Jan 17, 2023 at 04:27:56PM +0100, Christian Brauner wrote: >> On Tue, Jan 17, 2023 at 02:56:56PM +0100, Giuseppe Scrivano wrote: >>> Christian Brauner writes: >>> 2) no multi repo support: >>> >>> Both reflinks and hardlinks do not work across mount points, so we >> >> Just fwiw, afaict reflinks work across mount points since at least 5.18. > ... > > As such, I think composefs is definitely worth further time and > investment as a unique line of filesystem development for Linux. > Solve the chain of trust problem (i.e. crypto signing for the > manifest files) and we potentially have game changing container > infrastructure in a couple of thousand lines of code... I think that is the last time I write some words in this v2 patchset. At a quick glance of the current v2 patchset: 1) struct cfs_buf { -> struct erofs_buf; 2) cfs_buf_put -> erofs_put_metabuf; 3) cfs_get_buf -> erofs_bread -> (but erofs_read_metabuf() in v5.17 is much closer); https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/fs/erofs/data.c?h=linux-5.17.y 4) cfs_dentry_s -> erofs_dirent; ... Also it drops EROFS __lexx and uses buggy uxx instead. It drops iomap/fscache interface with a stackable file interface and it doesn't have ACL and (else) I don't have time to look into more. That is the current my point of view of the current Composefs. Yes, you could use/fork any code in open-source projects, but it currently seems like an immature EROFS-truncated copy and its cover letter never mentioned EROFS at all. I'd suggest you guys refactor similar code (if you claim that is not another EROFS) before it really needs to be upstreamed, otherwise I would feel uneasy as well. Apart from that, again I have no objection if folks feel like a new read-only stackable filesystem like this. Apart from the codebase, I do hope there could be some discussion of this topic at LSF/MM/BPF 2023 as Amir suggested because I don't think this overlay model is really safe without fs-verity enforcing. Thank all for the time. I'm done. Thanks, Gao Xiang > > Cheers, > > Dave.