From nobody Mon Nov 10 19:07:32 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558436357; cv=none; d=zoho.com; s=zohoarc; b=g+dZxOpSxoTcfpF1VGAJHsutM87dns7sKPXNIEjjUhFB9dy9Ib9Dd2tTeKqKxZ4MXT2AMLmIcz7R+RAvYrQpxmwb+JUzxcTLs2182oBZygUiqRSuU5IHrU1Lc2tI9iSKyUaVrfNnhXL3/7UHC7URTTExvyD50yXiJNcSagzClmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558436357; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Ygol0dDQ9YxzX2oDC+n5tvu37gdWaZ3XH8dntIibPG8=; b=OiBJJ0UdhZdaaLm1DHPsJusPISsyUdkiHOEc+jZ18Oh9h1zhCExpJyvX0bZF6sdQF+D5AiEZZuQifq+XmqnhXXNVwpE944mLS3fyZ3LlzBvjPXDnMaaV2iJXtLDsJtpWw8hbUcW26VEC1wcHl+2e0ZJ3LgklxgCakJkWly4xI6w= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1558436357543208.96337019760813; Tue, 21 May 2019 03:59:17 -0700 (PDT) Received: from localhost ([127.0.0.1]:51360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT2UB-00041h-Gc for importer@patchew.org; Tue, 21 May 2019 06:59:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT2PU-0000F5-2h for qemu-devel@nongnu.org; Tue, 21 May 2019 06:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hT2PR-0004s0-8Q for qemu-devel@nongnu.org; Tue, 21 May 2019 06:54:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57434) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hT2PR-0004qx-3O for qemu-devel@nongnu.org; Tue, 21 May 2019 06:54:17 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F40EE7FDEE; Tue, 21 May 2019 10:54:11 +0000 (UTC) Received: from thuth.com (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id C298D6085B; Tue, 21 May 2019 10:54:10 +0000 (UTC) From: Thomas Huth To: Peter Maydell , qemu-devel@nongnu.org Date: Tue, 21 May 2019 12:53:40 +0200 Message-Id: <20190521105344.11637-10-thuth@redhat.com> In-Reply-To: <20190521105344.11637-1-thuth@redhat.com> References: <20190521105344.11637-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 21 May 2019 10:54:12 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PULL 09/13] tests/qemu-iotests/005: Add a sanity check for large sparse file support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, lvivier@redhat.com, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" "check -raw 005" fails when running on certain filesystems - these do not support such large sparse files. Use the same check as in test 220 to skip the test in this case. Suggested-by: Eric Blake Message-Id: <20190502084506.8009-2-thuth@redhat.com> Reviewed-by: Eric Blake Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth --- tests/qemu-iotests/005 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index 2fef63af88..9c7681c19b 100755 --- a/tests/qemu-iotests/005 +++ b/tests/qemu-iotests/005 @@ -55,6 +55,15 @@ if [ "$IMGPROTO" =3D "sheepdog" ]; then _notrun "image protocol $IMGPROTO does not support large image sizes" fi =20 +# Sanity check: For raw, we require a file system that permits the creation +# of a HUGE (but very sparse) file. Check we can create it before continui= ng. +if [ "$IMGFMT" =3D "raw" ]; then + if ! truncate --size=3D5T "$TEST_IMG"; then + _notrun "file system on $TEST_DIR does not support large enough fi= les" + fi + rm "$TEST_IMG" +fi + echo echo "creating large image" _make_test_img 5000G --=20 2.21.0