From mboxrd@z Thu Jan 1 00:00:00 1970 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 1B5D4CCA47C for ; Tue, 7 Jun 2022 12:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244186AbiFGMsG (ORCPT ); Tue, 7 Jun 2022 08:48:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244190AbiFGMsB (ORCPT ); Tue, 7 Jun 2022 08:48:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1F12125A for ; Tue, 7 Jun 2022 05:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=YZqL45OZLXfGdFUrW98mhAIJnOCPS8lTW1cNSXZmPb8=; b=Xd0eVz8TDrCafvXAThhPm70qRK JPGfqk9Bg0kknO8m1d+LwnGRHGdHg9ZwBIextQMHmgJE77em20hDPeKsPW89fA+EnoJ8xf+LPLBGl fFc55Upj74vx9ftwJBusN1aC0S/eJXcZBzcuRqu9xidZbAbE10P4c22g8qagv+XiMhLM2lMcsQM/n 8lmOUxTL27m617OogX8UBB5HqlJ673UpCk88nljjo9dl6J8rWvIu+H7VPS0yLSZUYPeLSlh3tsInE itzHHVrfFU9wf/8eFHvz8ByjGZK1IQdwtWLTWArXTxO555RlODCCPYJz6GZRwj54ndub1E3Ksoaot H7dT38aw==; Received: from [2001:4bb8:190:726c:b34a:228:52ee:6d34] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyYcm-007Sap-JP; Tue, 07 Jun 2022 12:47:57 +0000 From: Christoph Hellwig To: Shin'ichiro Kawasaki Cc: linux-block@vger.kernel.org Subject: [PATCH blktests 05/13] block/006: convert to use _configure_null_blk Date: Tue, 7 Jun 2022 14:47:31 +0200 Message-Id: <20220607124739.1259977-6-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220607124739.1259977-1-hch@lst.de> References: <20220607124739.1259977-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Switch to use _configure_null_blk so that built-in null_blk can be supported, which implies not using the default nullb0 device. Signed-off-by: Christoph Hellwig --- tests/block/006 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/block/006 b/tests/block/006 index 7ca1021..7d05b11 100755 --- a/tests/block/006 +++ b/tests/block/006 @@ -24,18 +24,18 @@ test() { _divide_timeout 2 FIO_PERF_FIELDS=("read iops") - if ! _init_null_blk submit_queues=2 blocking=1; then + if ! _configure_null_blk nullb1 submit_queues=2 blocking=1 power=1; then return 1 fi # run sync test _fio_perf --bs=4k --ioengine=sync --rw=randread --norandommap --name=sync \ - --filename=/dev/nullb0 --size=5g --direct=1 + --filename=/dev/nullb1 --size=5g --direct=1 # run async test _fio_perf --bs=4k --ioengine=libaio --iodepth=8 --numjobs="$(nproc)" \ --rw=randread --norandommap --name=async \ - --filename=/dev/nullb0 --size=5g --direct=1 + --filename=/dev/nullb1 --size=5g --direct=1 _exit_null_blk -- 2.30.2