From patchwork Thu Oct 10 15:36:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Harmstone X-Patchwork-Id: 13830443 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AD24188A3B for ; Thu, 10 Oct 2024 15:36:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.153.30 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728574606; cv=none; b=MpwZ38I62Cf1NTG9OvN6IxRHaSqsPP1KNFAbVfWm9yW4NrUbPLoySiRaDlN6+ukKgOjRssoO5M548Jn+FuC/SoYpnEtSURsT96KQwWslNaHlEWWH8mryqbusIXuOS7NY1TTGoSoTTE8bRNSPdb08ml3TTa5QsnMjTHLdda1qs98= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728574606; c=relaxed/simple; bh=IvCvwm5EiK6Blt8R6tOPcOuq1qSpkIVz8Ozx+1wkRKI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JHCkrOEgzYldbCVq5OF0qRPoQY5WYEEoKfyNxtp+copIlX6jSKXerz1+bNeZAZzvADo1msjOkS0eWop2qmWdvWM2tWJLwiTxb62b7qhX2DyN4huE9qxThF2FvfERjkLjDkYKfxrucq5q79CVrTy6UnMPUTVbJ5r7HS5rhiXgUUM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fb.com; spf=pass smtp.mailfrom=meta.com; dkim=pass (1024-bit key) header.d=fb.com header.i=@fb.com header.b=IUMRnvZB; arc=none smtp.client-ip=67.231.153.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fb.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fb.com header.i=@fb.com header.b="IUMRnvZB" Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49AEO50n015600 for ; Thu, 10 Oct 2024 08:36:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=facebook; bh=VUPwEcuT3FQ7HzOXxnGGGc7 agmwlKVlRa+zqVyw2QgA=; b=IUMRnvZB5KfsBQbj6AGdzEYBcJ922Hl1m8nyDsq DGi81Edv2TxFp7xii6HmR3uES14gtZR6hEYeGvdn/0+O4Ucn3v1HU/lXJQgBZRyl iylDoMOrR/rnsd4oqOwk8f+N9Y3Ig/VjGXgC1NQBffbCdY0PQxgSeokSJ+c4f2YY jFCA= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 426ct4stuk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 10 Oct 2024 08:36:43 -0700 (PDT) Received: from twshared18321.17.frc2.facebook.com (2620:10d:c0a8:1b::8e35) by mail.thefacebook.com (2620:10d:c0a9:6f::8fd4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1544.11; Thu, 10 Oct 2024 15:36:42 +0000 Received: by devbig276.nha1.facebook.com (Postfix, from userid 660015) id DD6567A273D3; Thu, 10 Oct 2024 16:36:38 +0100 (BST) From: Mark Harmstone To: CC: , Mark Harmstone Subject: [PATCH] btrfs/318: add _require_loop Date: Thu, 10 Oct 2024 16:36:25 +0100 Message-ID: <20241010153630.1225162-1-maharmstone@fb.com> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-FB-Internal: Safe X-Proofpoint-GUID: gwHqkWJYalket10i39bv3MzIImJiaCyD X-Proofpoint-ORIG-GUID: gwHqkWJYalket10i39bv3MzIImJiaCyD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-05_03,2024-10-04_01,2024-09-30_01 btrfs/318 uses loopback devices, but was missing a call to _require_loop to print the correct message if CONFIG_LOOP is not set. Signed-off-by: Mark Harmstone Reviewed-by: Filipe Manana Reviewed-by: Zorro Lang --- tests/btrfs/318 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/btrfs/318 b/tests/btrfs/318 index 79977276..df5a4a07 100755 --- a/tests/btrfs/318 +++ b/tests/btrfs/318 @@ -18,6 +18,7 @@ _fixed_by_kernel_commit 9f7eb8405dcb \ _require_test _require_command "$PARTED_PROG" parted _require_batched_discard "$TEST_DIR" +_require_loop _cleanup() { cd /