Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp410968ybz; Fri, 24 Apr 2020 02:34:42 -0700 (PDT) X-Google-Smtp-Source: APiQypJcSwvYWiDTatsR04/17WKdwKUrkZ3Xf/FeLLxvC/7rKk2HFOmag7ore9Kn89F6mKEtzS2H X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr6635353eju.331.1587720882177; Fri, 24 Apr 2020 02:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587720882; cv=none; d=google.com; s=arc-20160816; b=GztylEa9dcgDPxJh0qPh3szexpjhYdnAn+DP5888w+N9TY3bUjcyzPUGLAi1JQ/yBW +LlO5xNto4H5XDxwzmr3sRrTEnigV4J6LIx7rg+Qdi4r1Nj3T2grBPxNgBcXQhv8SblA 8JIsg4MdhBh1dEakN9014xmJsqGRPddQ9ZAY/HLLGb22opbDsGmqVnr+jmlLrtPwGQaw yfSInVsXRqcAgJ1KwnVQi598SJMgotHnoXRqzAc7h2YGbgg4HLNa5QW2BArci8YcR/EX aMXuB4t9+fOD2v6MJbKKOzuT8i7qtk8zWVbOrvEXx27cM2SEz2oJDrlfLu/y2+68U96D fJUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=EmAADUTFbRKtc9l96hX5Od0YsnNj8nHswXTgoX3aimQ=; b=U5qOm+BhVx1/7f93fIz3JJbOWmiXsfxAlg8v898AlU25hVTRH5DleAEj2KX7ToqyWt h6dvWX/rsY9y3akccrY6qsuSyXd1Zp7MZ2d9MWuPo2D3lYnIlLAxzxo8B+MCaUXR6AE5 vhxrF1WQwITfXSlQfolbOcJupuYxqCcqRXIFqsSDGyolKBXj5tsWZIhaHx+99NsvblgW agkoCCuyIO6sK5HAqQfZeRf4mqNfOiVlJr8ihnkthvkyZR6ec0VvbruD8fa6jH3y8Ptd lj750dhwigYKCgeDFOMQH94GzJDxliAPs6j76kTZu8NvnJW9fvX73de5ARKrkyAc5JQO Hcfw== 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 n18si2908096edq.472.2020.04.24.02.34.10; Fri, 24 Apr 2020 02:34:42 -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 S1726758AbgDXJeG (ORCPT + 99 others); Fri, 24 Apr 2020 05:34:06 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:47858 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbgDXJeG (ORCPT ); Fri, 24 Apr 2020 05:34:06 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01355;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0TwVqLjy_1587720843; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0TwVqLjy_1587720843) by smtp.aliyun-inc.com(127.0.0.1); Fri, 24 Apr 2020 17:34:04 +0800 From: Jeffle Xu To: fstests@vger.kernel.org Cc: linux-ext4@vger.kernel.org, joseph.qi@linux.alibaba.com, Jeffle Xu Subject: [PATCH RFC 0/2] fsx: make fsx perceptive to cluster size Date: Fri, 24 Apr 2020 17:33:48 +0800 Message-Id: <1587720830-11955-1-git-send-email-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Offset and size should be aligned with cluster_size when inserting or collapsing range on ext4 with 'bigalloc' enabled. Currently fsx only align offset/size with block size. In fact I have no idea which is the best way to fix this isue. On one hand, fsx should be general and has no knowledge of the underlying filesystem. Besides the cluster size seems to be stored on ext4_super_block and there's no easy way to get it. But on the oter hand, quite many tests call fsx directly, e.g., generic/127, rather than the generic routine run_fsx() defined in common/rc. Jeffle Xu (2): xfstests: fsx: add support for cluster size xfstests: common/rc: add cluster size support for ext4 common/rc | 9 +++++++++ ltp/fsx.c | 20 ++++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) -- 1.8.3.1