Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp488968rdg; Tue, 10 Oct 2023 17:13:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyyFZIODjyZ4ub1HbzApGZhfN2Vlc3+Hr2xU6ZlwoNQ3vuJ9JzqWLPBajXGwWMmU3MOHDh X-Received: by 2002:a05:6358:618c:b0:145:6560:d86d with SMTP id w12-20020a056358618c00b001456560d86dmr13282523rww.32.1696983209552; Tue, 10 Oct 2023 17:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696983209; cv=none; d=google.com; s=arc-20160816; b=d+hS+xx8MExfmsoGUDgJNUkTbkHzm4xjp7dKCFJTg0Gsq80rxC2/Lvub1Rz2yCYKHR BKYDzskxnUvrL+ncOl1LIteXb27+sFS6zq3oZNkhdIKf+hOB8TlUnhKvfqzw0Hj+C0F7 Tn4Xj803/N7PHBBlLEgAHorx1cZU0u1o2FC2Sz6oev1+HSLNl6+8sfOzgLIZnJgRvIdq VL+URU9llH1fByXAKtRfCHDa6FsZ82alVwfG2g0D/UsYR+cyQsLhdcBwXne9UMwVqA1y f+u86YadjTenbvvS3sdRObLAvpX5ucmTcCfqPWASMudOSHH9kV1xzRuDmXpMTkAQHC3X q9zA== 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:dkim-signature; bh=bXYSMoj+4mDjgRP2mTt2Aa1GtDE1UTVBqHkHte3xwzo=; fh=yewGppZRzX9YpyYWG0x58MuDKnCcUPfkXLwJGOKeE90=; b=KtTvjxAwu729UeI5BITIQfnUfI1m5BhptdnLJZnAqP59Pf8nBXKAgovnANZjktELvk jD0P1Czh35s7A4Nl7gVouSaER6O94Kf2XKjdU8x2/640bNzuNTaM+sLXxesvP5DPXSJP CPTRauzcbM6gCxquZRUP8BhYiblZksQICqcmVPrjWTDCaVtmbTIl8yvp8QwzVhQT0s75 CrkBOXpEqGBN+Z9qw+OwICH7yc4/5AbEFapff6ezOPP+VwRhPpKnMr50oyxvfpolVs83 c8KIex88GMMtXKjA1BhpCljGxRY4ntZp9NIEmMgs/SZG9IETQGphV8cT1ZZbJCxyT2PD NtAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=THVAZbLH; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id nv8-20020a17090b1b4800b0026c198d8182si16159691pjb.105.2023.10.10.17.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 17:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=THVAZbLH; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B25ED807516A; Tue, 10 Oct 2023 17:13:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344204AbjJKANY (ORCPT + 99 others); Tue, 10 Oct 2023 20:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344229AbjJKANX (ORCPT ); Tue, 10 Oct 2023 20:13:23 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69EC28F for ; Tue, 10 Oct 2023 17:13:21 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-691c05bc5aaso5565859b3a.2 for ; Tue, 10 Oct 2023 17:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1696983201; x=1697588001; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=bXYSMoj+4mDjgRP2mTt2Aa1GtDE1UTVBqHkHte3xwzo=; b=THVAZbLHDOGUMC2GecjPMvtCxzk3eiP3aTrvbwVAmZidEWVOrPAXo2r+UHpS7wvTnx PtNgVjzST+8AvmbSJzItwpVaMU9pgKBbr3474Gz19CJ+hfC+bKHy9niI6V90QIGw76ue 0UfiHkTWDez1BRdMrRMN9Fm9KrpVtjGHQyYZRN/x0sUX1Wi75EaJ43K7DffpMCHU7ygz dGSg+tvidNXUEc3tcXW/gWJnMtGmyrYyRPsBM6y3eSrlOyRPbe+42vNSDGr8krIWLVt2 vURLIec4QX8A+NQL4+r/J7pPvH6TaiqPH4fFOmRGyoOG2gx0+RV1NcaUZlqUyGPFD6eH giew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696983201; x=1697588001; 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=bXYSMoj+4mDjgRP2mTt2Aa1GtDE1UTVBqHkHte3xwzo=; b=Bo2BrbXSNRyDVzJiJFGuDaBIDF/Ormh/Zr+u6p5LZ+o1O90ydHIPAUAOWVIFoPH+M4 ZaxFHp43XFi69Hz5IWgl6Jfb2TZEfKQC5osqIF8iAsnP9VQKIqf8TGREWcexTWGae8Cf h8vHklhU/7ZWKpOZx6K1aL2m/xeKi8/nh9RjssDsQcWZY9/oCdMCNjV25X0bE6WraTtW XFH3VW2pfM+c2q3SA2FUl9FCD79/G1A+rlo6U69SKqJRnJiWwdyYYN4+QiOkhG76gkOU RReaspRwdQhHxP/YKWSOfWDQukYiedhZAOwwWjoouDNmRBDSZmBmOEjpjAcxALB95kwr x5EA== X-Gm-Message-State: AOJu0YwO6ANqQINFn1Pom0PxPxHJKwc26+cgy6Bc0MvzSqUG43ARztD1 LzjOQtnUCt/mXH/BqRruBpgF8w== X-Received: by 2002:a05:6a20:9385:b0:161:3120:e840 with SMTP id x5-20020a056a20938500b001613120e840mr24937687pzh.2.1696983200909; Tue, 10 Oct 2023 17:13:20 -0700 (PDT) Received: from dread.disaster.area (pa49-180-20-59.pa.nsw.optusnet.com.au. [49.180.20.59]) by smtp.gmail.com with ESMTPSA id p10-20020a170902eaca00b001b8a85489a3sm12443132pld.262.2023.10.10.17.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 17:13:20 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1qqMqk-00CB5y-0c; Wed, 11 Oct 2023 11:13:18 +1100 Date: Wed, 11 Oct 2023 11:13:18 +1100 From: Dave Chinner To: Sarthak Kukreti Cc: dm-devel@redhat.com, linux-block@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Alasdair Kergon , Mike Snitzer , Christoph Hellwig , Brian Foster , Theodore Ts'o , Andreas Dilger , Bart Van Assche , "Darrick J. Wong" Subject: Re: [PATCH v8 0/5] Introduce provisioning primitives Message-ID: References: <20231007012817.3052558-1-sarthakkukreti@chromium.org> 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=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 17:13:26 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 03:42:53PM -0700, Sarthak Kukreti wrote: > On Sun, Oct 8, 2023 at 4:50 PM Dave Chinner wrote: > > > > On Fri, Oct 06, 2023 at 06:28:12PM -0700, Sarthak Kukreti wrote: > > > Hi, > > > > > > This patch series is version 8 of the patch series to introduce > > > block-level provisioning mechanism (original [1]), which is useful for provisioning > > > space across thinly provisioned storage architectures (loop devices > > > backed by sparse files, dm-thin devices, virtio-blk). This series has > > > minimal changes over v7[2]. > > > > > > This patch series is rebased from the linux-dm/dm-6.5-provision-support [1] on to > > > (cac405a3bfa2 Merge tag 'for-6.6-rc3-tag'). In addition, there's an > > > additional patch to allow passing through an unshare intent via REQ_OP_PROVISION > > > (suggested by Darrick in [4]). > > > > The XFS patches I just posted were smoke tested a while back against > > loop devices and then forward ported to this patchset. Good for > > testing that userspace driven file preallocation gets propagated by > > the filesystem down to the backing device correctly and that > > subsequent IO to the file then does the right thing (e.g. fio > > testing using fallocate() to set up the files being written to).... > > > > Thanks! I've been testing with a WIP patch for ext4, I'll give your > patches a try. Once we are closer to submitting the filesystem > support, we can formalize the test into an xfstest (sparse file + loop > + filesystem, fallocate() file, check the size of the underlying > sparse file). That's not really a valid test - there are so many optional filesystem behaviours that can change the layout of the backing file for the same upper filesystem operations. What we actually need to test is the ENOSPC guarantees, not that fallocate has been called by the loop device. i.e. that ENOSPC is propagated from the underlying filesystem though the loop device to the application running on the upper filesystem appropriately. e.g. when the lower filesystem is at ENOSPC, the writes into provisioned space in the loop device backing file continue to succeed without ENOSPC being reported to the upper filesystem. i.e. this needs to be tested from the perspective of the API presented to the upper filesystem, not by running an upper fs operation and then trying to infer correct behaviour by peering at the state of the lower filesystem... Cheers, Dave. -- Dave Chinner david@fromorbit.com