From patchwork Mon Jul 15 08:25:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11043495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 179CF13B1 for ; Mon, 15 Jul 2019 08:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07EBA20502 for ; Mon, 15 Jul 2019 08:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE98C2766D; Mon, 15 Jul 2019 08:25:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A32520502 for ; Mon, 15 Jul 2019 08:25:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729432AbfGOIZi (ORCPT ); Mon, 15 Jul 2019 04:25:38 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42518 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729430AbfGOIZi (ORCPT ); Mon, 15 Jul 2019 04:25:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9FTwj8LehDfEjHT88teL3kfn2/gZfY2UgxnW3PXfZp4=; b=fk86bRbIy8HAhpX8ZYOOWIvZW b/GBplpq8ZmIvs8/rw1H/0JvGIccS9ZuOsOzkP8OKBJG/4tW9QD03GP0FKLcZuVSRjdlGMIA62hCa xjLsU3FHZC5KhyeYzJNk5tUbbHYykO7enW0oKnJiI8wo/hVBE0lNYUEPCwe5l1d85XzPEkdFRF64u NPGL2b7gMU/p1fe11W65RiVrJAD+EydM6fhMqvohn7MWhQs8GApHvaF5BgRMAxx0IfuzBrgkQn5H3 d1idQ3cFHCQqa+4v6OR97bySTJSEyi5hhXFxqxYDSRggExbzKBbsP/gVuUqI5+V0dRY26kdAnEsCP QJNT5z9GQ==; Received: from 089144194016.atnat0003.highway.a1.net ([89.144.194.16] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hmwIi-0004VI-Ty for fstests@vger.kernel.org; Mon, 15 Jul 2019 08:25:37 +0000 From: Christoph Hellwig To: fstests@vger.kernel.org Subject: [PATCH 2/3] shared/011: run for all block device based file systems Date: Mon, 15 Jul 2019 10:25:22 +0200 Message-Id: <20190715082523.18387-2-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190715082523.18387-1-hch@lst.de> References: <20190715082523.18387-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cgroupv2 writeback support can't be easily detected. But it is kindof expected from block based file systems and can be easily added, so just assume support and fail if it doesn't work. Signed-off-by: Christoph Hellwig --- tests/shared/011 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/shared/011 b/tests/shared/011 index a0ac375d..b4cdc5ed 100755 --- a/tests/shared/011 +++ b/tests/shared/011 @@ -39,11 +39,14 @@ rm -f $seqres.full # real QA test starts here # Modify as appropriate. -_supported_fs ext4 btrfs +_supported_fs generic _supported_os Linux _require_scratch _require_cgroup2 io +# cgroup v2 writeback is only support on block devices so far +_require_block_device $SCRATCH_DEV + smajor=$((0x`stat -L -c %t $SCRATCH_DEV`)) sminor=$((0x`stat -L -c %T $SCRATCH_DEV`)) cgdir=$CGROUP2_PATH