Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6377300rwb; Tue, 9 Aug 2022 14:17:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6NR1FQDPYtDi4ItBydMNFBVSrWsGKhWK8yndpPRIYF8kQJK1WD8uM391H6dv/x6ufHVGnh X-Received: by 2002:a62:5f06:0:b0:52e:f3a3:ffee with SMTP id t6-20020a625f06000000b0052ef3a3ffeemr15538166pfb.79.1660079869138; Tue, 09 Aug 2022 14:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660079869; cv=none; d=google.com; s=arc-20160816; b=iEEHmu6r0hIxBiXNgrjmidesR8I+5z5WIpWlg8wmeHVQo6/hiQgQKXzkGRcCBcAb+m uK0B5xsCOJbtpmWB1un0vmUoC3YEnO9uMu/1KqGnCGeV5AONgx/j2ghirIFqVl4PB6f+ Z3KCjz5pq3xW4zjYbze7FREpdzoPgQ5eN866O7XY4yw1CPQUkI3ByQIX9L4VnUypfj1w knz/CffPfgJOomNWuqK7Zp+AzJcICbw2LnlD1Vhwp52UqLjo9FvRvdU1IC2BBUqQe/Yo Iyw+tuLCkqmt4WZqDMQ5sMhJyPDcGaktiMDHAqN0iv5mo+hQfi/CLc/cDBiH9XiG4V9M 4wgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=J5jV4iPqxq3n7QkAzlNYXq77lc00lI06+HYLuPkCzcU=; b=m9GL35uXZbuyZhtsRb8CU8GVjLdZLm6DT7AaTt+fk4sBYDHKJN9Q46h2hXvDU4pz+2 mxyXzFdNiO9s5Md4VOqtZfVASFR9YDNoCwXvCqXFLVZjhLU9kCN5vWF2MC4FDvTSG15I wXmAl+cKdIvozc6tn/nXPA5ToeG2yNJPoFonO+gi+HBI+czljScRcGH80A+vsvpNxMFt PnnJLI/e7NM7JeIxIVorvi+UxynAyAJgUEYlQGjVO24rHieaQbXHKEMY35JvuIvxk8gY 0CHpCSwyVOafzRFIO1xaY2C240pnOuq2moo+lgeWHbnlwpDVABtZbmyRoQHiUGbxSOHE Y7xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DOaxHb1i; 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 t24-20020a634458000000b0041c0c9a13fcsi8958798pgk.98.2022.08.09.14.17.27; Tue, 09 Aug 2022 14:17:49 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DOaxHb1i; 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 S229568AbiHIVB1 (ORCPT + 99 others); Tue, 9 Aug 2022 17:01:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiHIVAs (ORCPT ); Tue, 9 Aug 2022 17:00:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E44D42BB10; Tue, 9 Aug 2022 14:00:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DF7D0B818AD; Tue, 9 Aug 2022 21:00:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4A85C433C1; Tue, 9 Aug 2022 21:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660078841; bh=G4ciTDdVWftbBrneKFQEpoKRpzfbHXtSvwynYLfG3Sc=; h=Subject:From:To:Cc:Date:From; b=DOaxHb1iyZb5l8C0ArGEC1QMy9I5LmXhiT/XUooTtgKzieDmA/DLEXrRCt/fwNnIW wm3chSWf+DIaVjhcAdiLALO+eQeDc7OFt+RpNMWZLHnou5UpAgl+ARhpEvZY7p+vW4 ndKFLkhftHBUKJX+FQuXvmLL8kGOwCaMRT5wzn5rGCIXgkF+xOI8kA7rI5zF4N9j7k 6AFEq4Mbk9y6xLRCCtMUlRoNGIHzEWBR7Ednmp+wQLaZ+wCOW1wIyXz/508YVocxsO x9o+b7LHOoBM0lkE6wV0YH4oARQSW9URCbPoAUS7BweIaDZy6BCIPxRpYQs98twEXQ 7Hk1XYXQkioPQ== Subject: [PATCHSET v2 0/3] fstests: refactor ext4-specific code From: "Darrick J. Wong" To: djwong@kernel.org, guaneryu@gmail.com, zlang@redhat.com Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org, guan@eryu.me, tytso@mit.edu, linux-ext4@vger.kernel.org Date: Tue, 09 Aug 2022 14:00:41 -0700 Message-ID: <166007884125.3276300.15348421560641051945.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi all, This series aims to make it so that fstests can install device mapper filters for external log devices. Before we can do that, however, we need to change fstests to pass the device path of the jbd2 device to mount and mkfs. Before we can do /that/, refactor all the ext4-specific code out of common/rc into a separate common/ext4 file. v2: fix _scratch_mkfs_sized for ext4, don't clutter up the outputs If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=refactor-ext4-helpers --- common/config | 4 + common/ext4 | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ common/rc | 186 ++++--------------------------------------------------- common/xfs | 23 +++++++ 4 files changed, 233 insertions(+), 173 deletions(-) create mode 100644 common/ext4