Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1429174rwd; Wed, 7 Jun 2023 16:30:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61/LORyR/IIfND0+K0PspN+cLHVocomSs1/5OSAAIa8jPq22LY0ifrwXwINv/I5kb9Smus X-Received: by 2002:a17:902:968e:b0:1b0:26f0:4c72 with SMTP id n14-20020a170902968e00b001b026f04c72mr6232409plp.28.1686180618401; Wed, 07 Jun 2023 16:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686180618; cv=none; d=google.com; s=arc-20160816; b=XBxljDrCdL7GXEl8JRjIKGrIq2ZwD0FeUXpxu2sp7Y5G6j79ZubS3itcARghwGMN91 Dz6obksK37H8x7EIqMu6wKrGCiqdf0FARjC3sbYv9PF/QtYxCHTTP1QTBSCGLRMZ0fLF A+XmuyM/w4gd4LkX0kbJt3ZcztUSXFvLg241Q5VerFx7XtlrJsbJj5OZTTUPqCo7u6FW FPlUr7i2wdIN8+iJXYPcTRUCiZtST5OMKLnG2C/mq5tB4Ko2i6YwwTG6cYXv6+spjAE6 X/ESTs4wa48kYGg7eLM+eEjxcpk1t4ssM9133Ylg0QWVIOYt+WJ9VpWHL1hYgSIcG9bc pSNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=voj5Mda8Zfoqf83eL6TpEP6bEfS34qzT4ho4GEckRy8=; b=L/7ZSTeVt8tOT/5zJGCuo7ImcPujR2+pYr+tEHEllJxZspZ/x0+mxo4XsaQYfh+dIa 4580m0Q5bhHIcpbm3xz4ssGId5RK1hRM4mgDZiB3ZTRCyQMBudTmoHlMR++glAXoU8bw 4f7mR4xqYpLS1HqJn8vzeYqQgiwLpcumRNseDl0r+nByEkKH6A0izKPoRr0ULHABruwN C5MkFSHkcQi0TeqYIdsztvk8EGX+uH4o5obF4vdemAgbcaf/Rl5l2mVtWZGrSDCmeJ8d 4Yc09nyTF2HQjCePYb6NrDDsdI4+e8TBhBxJOghfGreJsZctcQj+9JrkVUynJR9jqe0N T8NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb8-20020a170902fa4800b001aaf62c76cesi105227plb.129.2023.06.07.16.29.59; Wed, 07 Jun 2023 16:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233114AbjFGX2P (ORCPT + 99 others); Wed, 7 Jun 2023 19:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjFGX2O (ORCPT ); Wed, 7 Jun 2023 19:28:14 -0400 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BDB2684 for ; Wed, 7 Jun 2023 16:27:27 -0700 (PDT) Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-3f7a546efb1so7631cf.2 for ; Wed, 07 Jun 2023 16:27:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686180446; x=1688772446; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=voj5Mda8Zfoqf83eL6TpEP6bEfS34qzT4ho4GEckRy8=; b=ixDN5bYNQ1YVF4uYcfMnP9az5vVMlruwnopCnBYoV7O0wZpkAv8IuyLE2q035UPus9 mkPljT7YH9XxwO1LKJOh5SoiWW725SqaejkOKSLvHANBJCl+uJs549NsCV860j8fwSti D/DzKWshwiacumwfzLHlwLsxbivWnIkPIe9kGk0rE5T41idzjRnUWZHpWmKSp0KWGlLm mnM8Iw0AC5ljHTPzhO6uQ16my8QQqoMdVwAxHCHX3cwEEIiTbriPLJC2WFdszpX0vmB+ AS+q4Sw+fKE5DV61DS8YZhggBI4MWR7InYepHVZM43JJaB2U0pxrWYbpL2YAl8H62FUJ MYEw== X-Gm-Message-State: AC+VfDwtWjLQUpZF8nCTCXPw3iVVA6q3LIWyDmaQeYxVqVkTsK4k6tyN 5MCbxuv4WMkR8lQ5l74WKeYx X-Received: by 2002:ac8:5c16:0:b0:3d8:2352:a661 with SMTP id i22-20020ac85c16000000b003d82352a661mr6003241qti.3.1686180446161; Wed, 07 Jun 2023 16:27:26 -0700 (PDT) Received: from localhost (pool-68-160-166-30.bstnma.fios.verizon.net. [68.160.166.30]) by smtp.gmail.com with ESMTPSA id i9-20020ac84f49000000b003f018e18c35sm286121qtw.27.2023.06.07.16.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 16:27:25 -0700 (PDT) Date: Wed, 7 Jun 2023 19:27:24 -0400 From: Mike Snitzer To: Sarthak Kukreti Cc: Jens Axboe , Christoph Hellwig , Joe Thornber , "Michael S. Tsirkin" , "Darrick J. Wong" , Jason Wang , Bart Van Assche , Dave Chinner , linux-kernel@vger.kernel.org, Joe Thornber , linux-block@vger.kernel.org, dm-devel@redhat.com, Andreas Dilger , Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, Theodore Ts'o , linux-ext4@vger.kernel.org, Brian Foster , Alasdair Kergon Subject: Re: [PATCH v7 0/5] Introduce provisioning primitives Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org On Mon, Jun 05 2023 at 5:14P -0400, Sarthak Kukreti wrote: > On Sat, Jun 3, 2023 at 8:57 AM Mike Snitzer wrote: > > > > We all just need to focus on your proposal and Joe's dm-thin > > reservation design... > > > > [Sarthak: FYI, this implies that it doesn't really make sense to add > > dm-thinp support before Joe's design is implemented. Otherwise we'll > > have 2 different responses to REQ_OP_PROVISION. The one that is > > captured in your patchset isn't adequate to properly handle ensuring > > upper layer (like XFS) can depend on the space being available across > > snapshot boundaries.] > > > Ack. Would it be premature for the rest of the series to go through > (REQ_OP_PROVISION + support for loop and non-dm-thinp device-mapper > targets)? I'd like to start using this as a reference to suggest > additions to the virtio-spec for virtio-blk support and start looking > at what an ext4 implementation would look like. Please drop the dm-thin.c and dm-snap.c changes. dm-snap.c would need more work to provide the type of guarantee XFS requires across snapshot boundaries. I'm inclined to _not_ add dm-snap.c support because it is best to just use dm-thin. And FYI even your dm-thin patch will be the starting point for the dm-thin support (we'll keep attribution to you for all the code in a separate patch). > Fair points, I certainly don't want to derail this conversation; I'd > be happy to see this work merged sooner rather than later. Once those dm target changes are dropped I think the rest of the series is fine to go upstream now. Feel free to post a v8. > For posterity, I'll distill what I said above into the following: I'd like > a capability for userspace to create thin snapshots that ignore the > thin volume's provisioned areas. IOW, an opt-in flag which makes > snapshots fallback to what they do today to provide flexibility to > userspace to decide the space requirements for the above mentioned > scenarios, and at the same time, not adding separate corner case > handling for filesystems. But to reiterate, my intent isn't to pile > this onto the work you, Mike and Joe have planned; just some insight > into why I'm in favor of ideas that reduce the snapshot size. I think it'd be useful to ignore a thin device's reservation for read-only snapshots. Adding the ability to create read-only thin snapshots could make sense (later activations don't necessarily need to impose read-only, doing so would require some additional work). Mike