From patchwork Wed Sep 27 23:07:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Burkov X-Patchwork-Id: 13401790 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59B8DE80A8A for ; Wed, 27 Sep 2023 23:06:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229469AbjI0XGX (ORCPT ); Wed, 27 Sep 2023 19:06:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjI0XGW (ORCPT ); Wed, 27 Sep 2023 19:06:22 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7AAEF4; Wed, 27 Sep 2023 16:06:20 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0AA865C2924; Wed, 27 Sep 2023 19:06:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 27 Sep 2023 19:06:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bur.io; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1695855980; x=1695942380; bh=0ugX3xILH8 0OBULxpahgdONffdW0qbYIrFln5s8teO8=; b=cQQXs+2mu31dA1l3sxvPhe1jse u6JIGDwVA8MJVldPyM0G5xrAsbPezWFCy4iqy2ZyicQksnhZZKgyZKr6thhkLl/F 1h0cUXE8komdERg6/DiqmhPW/KrtPLB5gBmbfu9HiQbzsnOB+XG2+Um542y3cKM6 WV2nlWG7mwudphrDLHzoYpse9vegpXbL1yZ3ws8y+GMC+acJcVDG0yCDiK2Jky2U KmfeAuzqSudFNOVVY1gtigbtpmlnPIRGVFAe75Wk9Q7Jg4wX2B2XMnr3oQhXHYwU fZjcUa6EaF6IReI1pMYbN/F1uKKNjHOOqjh8F0hA42oo/2JLEfYgu4cm1+3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1695855980; x=1695942380; bh=0ugX3xILH80OBULxpahgdONffdW0 qbYIrFln5s8teO8=; b=N+cGnqqM4jtEJvm8Eec/YJx19zSn5I65yIYcCjn2lAVd TGhrMYbAXcc9I6dt+z3eF7i/eTb8rUBKjQzUGL8rZxLpWWBM3fX3z5D9j38FU3lR AOMHXpBMQbzGalsRBWYeWkvS5JujDC0bNZHJVtkwPy5O6nrW1kHBIrCyOl3NMro+ 3AHAHqCNtj1cEKjIS9uu6cbE+ovK2oQSUjzOlDCYSnwNojFUZULlq7JgpFyuIX84 wf4ZI8ATYFi70T/W4AHXqEgWUAU+IwUPQS41nfbagWJ8gQwbUSSWiuMmu45131wi 2nQPjSBRnttoeYXYvGKFXe5dkPfoVa/zOaiDxcV7Gg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvjedrtdehgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpeeuohhrihhsuceuuhhrkhhovhcuoegsohhrihhssegsuhhrrdhioheq necuggftrfgrthhtvghrnhepieeltdffhffhvddtfeegvdeiteelieejjeeitdfhfeegke ehveehkeejleekgeeknecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsohhrihhssegsuhhrrd hioh X-ME-Proxy: Feedback-ID: i083147f8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Sep 2023 19:06:19 -0400 (EDT) From: Boris Burkov To: linux-btrfs@vger.kernel.org, kernel-team@fb.com, fstests@vger.kernel.org Subject: [PATCH v2 0/6] btrfs: simple quotas fstests Date: Wed, 27 Sep 2023 16:07:12 -0700 Message-ID: X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Add new tests (btrfs/400 for now, but intend to grab a real number before the last version) Also made modifications for passing existing qgroups tests when possible and for passing all tests with simple quota enabled via mkfs and with squota-aware `btrfs check`. Since this required reading sysfs files of scratch fses, did a bit of refactoring to make those checks target a device rather than assuming TEST_DEV. btrfs/400 depends on the kernel patchset: https://lore.kernel.org/linux-btrfs/cover.1694563454.git.boris@bur.io/ and the btrfs-progs patchset: https://lore.kernel.org/linux-btrfs/cover.1695836680.git.boris@bur.io/ (and config appropriate binaries to use squota-aware versions) --- Changelog: v2: - new sysfs helpers in common - better gating for the new squota test - fix various formatting issues - get rid of noisy dmesg logging Boris Burkov (6): common: refactor sysfs_attr functions btrfs: quota mode helpers btrfs/400: new test for simple quotas btrfs: quota rescan helpers btrfs: use new rescan wrapper btrfs: skip squota incompatible tests common/btrfs | 56 ++++++ common/rc | 127 ++++++++----- tests/btrfs/017 | 1 + tests/btrfs/022 | 1 + tests/btrfs/028 | 2 +- tests/btrfs/057 | 1 + tests/btrfs/091 | 3 +- tests/btrfs/104 | 2 +- tests/btrfs/123 | 2 +- tests/btrfs/126 | 2 +- tests/btrfs/139 | 2 +- tests/btrfs/153 | 2 +- tests/btrfs/171 | 6 +- tests/btrfs/179 | 2 +- tests/btrfs/180 | 2 +- tests/btrfs/190 | 2 +- tests/btrfs/193 | 2 +- tests/btrfs/210 | 2 +- tests/btrfs/224 | 6 +- tests/btrfs/230 | 2 +- tests/btrfs/232 | 2 +- tests/btrfs/400 | 423 ++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/400.out | 2 + 23 files changed, 587 insertions(+), 65 deletions(-) create mode 100755 tests/btrfs/400 create mode 100644 tests/btrfs/400.out