Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp316564ybz; Wed, 29 Apr 2020 00:23:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIWIJpTWUS/lNnr0pn9CQsCMo3b+SQbTo1lSEUes/umqf0xSpdeTqiblr4+WoWMJmY3Lj7f X-Received: by 2002:aa7:d0d8:: with SMTP id u24mr1288472edo.138.1588145027358; Wed, 29 Apr 2020 00:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588145027; cv=none; d=google.com; s=arc-20160816; b=o1QL9iCABVC075UcxnQXwXv+MN2NYTR9EGigUwfdJGqrYA4n70anRWd6lkaSDw0z/F 9sVJBG8isnOpI2Wb102AlBxi2Nb5F5zsS7AuJgmLojsCVp6DsSNlN7/8f01w4s0BxvrR 7zfi75iFhg8V37dvBKkYiUtBMu6EZZAMyZpaydDaQQfe1J6KFXthIfDxfSmbTc1ykkP3 Kl+MxnNHZxpYpPZ0lWVDTIRsi2kagpkHMkcajHcNWwwm9/HRbRsd0mjXk9I3FwQz5FO6 EZAtUQoQiFRYunoGhjGvhl2O94scybJ2TSGPlbBRWBc3rQmKStSm1M7lxVzqri8PP3dF IxkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=16M31P4SV50AyPVd7TUyvzR5Ruf57EqSPZsVckolBhc=; b=QRvsaVui8WNc6iGQ5uOWIqTqOvq8WDPaJGJ8RBPREG+JEr1FbqzPjbnIbNJCxXkE0+ Dv9+dSEjPNWNLLkmHIMwLD3F6UlPxHsRjC+YFnelQmuGl+1PraouSMEil4+3rj5BA+9/ eS9x2lqkHFr3k3rUATytxvgJ0eUA9Khg7FTcLbPHpmU2ah0qGRNno/07/XOqeQbzrELZ kcWMD8TGh7KsQ3I5AXxepRblqj9tpSpQ4Gg6nRHBbqfBUbxTqvFVJ5Pp9U5zW2efr+nq 5ovdpjxRBnJw3HeK4zntLLgSsawMXqjtn7kFPOHR8cz7fi1AZw9jhxqZtmJxmjXyUNQ4 HPIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si3414670ejj.92.2020.04.29.00.23.24; Wed, 29 Apr 2020 00:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S1726447AbgD2HWy (ORCPT + 99 others); Wed, 29 Apr 2020 03:22:54 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:32982 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbgD2HWy (ORCPT ); Wed, 29 Apr 2020 03:22:54 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Tx.9S2O_1588144970; Received: from admindeMacBook-Pro-2.local(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0Tx.9S2O_1588144970) by smtp.aliyun-inc.com(127.0.0.1); Wed, 29 Apr 2020 15:22:50 +0800 Subject: Re: [PATCH RFC 1/2] xfstests: fsx: add support for cluster size To: "Darrick J. Wong" Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org, joseph.qi@linux.alibaba.com References: <1587720830-11955-1-git-send-email-jefflexu@linux.alibaba.com> <1587720830-11955-2-git-send-email-jefflexu@linux.alibaba.com> <20200427172929.GL6740@magnolia> From: JeffleXu Message-ID: <66363e66-9c89-b877-e8d5-830d2c100b3b@linux.alibaba.com> Date: Wed, 29 Apr 2020 15:22:49 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200427172929.GL6740@magnolia> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 4/28/20 1:29 AM, Darrick J. Wong wrote: > On Fri, Apr 24, 2020 at 05:33:49PM +0800, Jeffle Xu wrote: >> The offset and size should be aligned with cluster size when inserting >> or collapsing range on ext4 with 'bigalloc' feature enabled. Currently >> I can find only ext4 with this limitation. > ocfs2 also has this magic, um, ability. > > As does xfs under certain circumstance (realtime volumes). > >> Since fsx should have no assumption of the underlying filesystem, and >> thus add the '-u cluster_size' option. Tests can set this option when >> the underlying filesystem is ext4 with bigalloc enabled. > Do copyrange, clonerange, or deduperange have this problem? ;) clonerange and deduperange are not supported in ext4, while copyrange and zerorange work as the range has no need to be aligned with cluster size in these two situations.