Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2563769lqz; Wed, 3 Apr 2024 01:34:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/voeRn3ZE8F8pmfxyxSsUcG21JpLPiG61fwXvV+bQKTNVxRdbk5U1nVWqD8+rJuLQWAr0HPLmSH0OAZywM/HuzGEN6l9MGE/x1rlOSw== X-Google-Smtp-Source: AGHT+IEax6mJgWL0wJQVPumPp5J/BFbGzePVd0E3lu0yQrBUh75ap5I5MwUkeRD+5POiyElrU804 X-Received: by 2002:a05:6870:cc87:b0:22a:6cbb:be5b with SMTP id ot7-20020a056870cc8700b0022a6cbbbe5bmr2534519oab.43.1712133245330; Wed, 03 Apr 2024 01:34:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712133245; cv=pass; d=google.com; s=arc-20160816; b=bVYMfapr5egr5epl1HgQZgDuyrwDH2x8wZ7uf8vnhRhO8Nb5Q+3FDB/Av+lLi+nFeT UdRbUi0Y4KRBdDarkM0YXB61osBiEZOaVmHnqwEuqi/WSuvF8vaA/4kbY6l0V1SV7v3i fjCcN4MlOAsE1XbG3Fmh8AQrHE1vebxD37DGtl3UbdIDr/5Pqhe5mMwy6AoZx8hul+k6 NLFbd/AdGN1N9iUlFz23OypMZwT8Kk7NYHgsL6pJTcBLUP92rLFG5ictrG+u+1imELGe I5/QLjc/yKh4rr4GyGsnMETDfFZcLdNNYX5vRAbbQ9uHZv/RUVXNzkVo8ISGLrW/Kxhi Tpzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=6ARyxKsG7GVlym8JkJymXRlceZpVJP0pu/mDsnbzovQ=; fh=fyX32KI+MfnPF/gOa2Asgo2zntJiHrCqmWBQbLnEchw=; b=cysV8aT72cNhXkZTMUf0cOCzBkkC3BN7zZWmx4qhydi6CETwLm0W/XD5rg3/350fHH A937NMTGqpukKdsnHwpaWFXDkWLO5HIjvylRMq8Uf6T1FTSCNX5ZjT1FN02O4GLx+D81 BwWcDLFbYJDLTRaKPNwByIvqNyJm1SRt9qt7z7MN4dO+Dw4FvqhsewS4J96PaRrARVx3 SD62xStGzuxKRy3HpcPf54mj3v4Yob5yYCusk464iTbJ/Slg1R1gtozlKKyxXKYnZoV+ N2/a6vqiVM9Clm9+Qvq93IgvBDvtGU8sMvNACzmyCFRrjQ3JV6duX3VxOmSzqTljctnX J3tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=R9aXz0Ht; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-129332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e17-20020a635451000000b005e42b5cb08bsi12063698pgm.110.2024.04.03.01.34.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=R9aXz0Ht; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-129332-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129332-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 52E0628768D for ; Wed, 3 Apr 2024 08:31:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C7CC6F06A; Wed, 3 Apr 2024 08:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="R9aXz0Ht" Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF6903E48E; Wed, 3 Apr 2024 08:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.113 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712132969; cv=none; b=ho6+ijI8R78pxaONgStjw4TUFIkPxn6vGz4Yxltvkzw8nbwGdLlI0EBE3QGakhnH9RZfdxRD1tZr3UKMQumBzzHSsCEl5parC41U1k6dEBkF3Q2PGxPY8YfjH/z1xC6td8SFhudA383whBZjNMWEoKpCEAyerTif96X5kTxmwYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712132969; c=relaxed/simple; bh=Ldfjw0TveG1bC27L02CGJ1El9aX9iApZ9fZGyu1A5wg=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=HQuM189R0MWqJgf153p1wXmA2Lq/2s5TiMbkAmh8H2O3SfOOqiNt3cR2wuWoHaKnvd6S2BgsjlWLR69JtPANyo+Jc1WZVg3oinOXY1M1ic3Z2ZywYbIQs6qACB2V+ZBYG55azUMvi0O1+ey+n7VT5WOWKDgAp93LUu6t1xWIvX4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=R9aXz0Ht; arc=none smtp.client-ip=115.124.30.113 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1712132958; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=6ARyxKsG7GVlym8JkJymXRlceZpVJP0pu/mDsnbzovQ=; b=R9aXz0HtchVxIj0OkVENOP7cn2AfFizRkz0mdt8mvI73FcWSx0ysGaFPOaN+ZaHguEqXNlsr/eeR24y4bKKSzrI8BZ373JQxfl/fwJPrV4hYPSVbj6wg7FluO1tL1kw8ugKsABUjFoL8ZiB7LZ0EV3h0tQaP03EESXs0Njme5JM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;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=20;SR=0;TI=SMTPD_---0W3r6Fd3_1712132955; Received: from 30.97.48.165(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0W3r6Fd3_1712132955) by smtp.aliyun-inc.com; Wed, 03 Apr 2024 16:29:16 +0800 Message-ID: Date: Wed, 3 Apr 2024 16:29:14 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 00/13] fiemap extension for more physical information To: Sweet Tea Dorminy , Jonathan Corbet , Kent Overstreet , Brian Foster , Chris Mason , Josef Bacik , David Sterba , Jaegeuk Kim , Chao Yu , Alexander Viro , Christian Brauner , Jan Kara , =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, kernel-team@meta.com References: From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 2024/4/3 15:22, Sweet Tea Dorminy wrote: > For many years, various btrfs users have written programs to discover > the actual disk space used by files, using root-only interfaces. > However, this information is a great fit for fiemap: it is inherently > tied to extent information, all filesystems can use it, and the > capabilities required for FIEMAP make sense for this additional > information also. > > Hence, this patchset adds various additional information to fiemap, > and extends filesystems (but not iomap) to return it. This uses some of > the reserved padding in the fiemap extent structure, so programs unaware > of the changes will be unaffected. I'm not sure why here iomap was excluded technically or I'm missing some previous comments? > > This is based on next-20240403. I've tested the btrfs part of this with > the standard btrfs testing matrix locally and manually, and done minimal > testing of the non-btrfs parts. > > I'm unsure whether btrfs should be returning the entire physical extent > referenced by a particular logical range, or just the part of the > physical extent referenced by that range. The v2 thread has a discussion > of this. Could you also make iomap support new FIEMAP physical extent information? since compressed EROFS uses iomap FIEMAP interface to report compressed extents ("z_erofs_iomap_report_ops") but there is no way to return correct compressed lengths, that is unexpected. Thanks, Gao Xiang