From patchwork Thu May 9 16:59:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 163737 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp1258972ilr; Thu, 9 May 2019 10:17:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxn821UHaihATGIiVZevp2oxNhcYuWqljhohhNUDz9KzfSEZOT2Pf97HucNeoqprNVEe386 X-Received: by 2002:adf:fcc8:: with SMTP id f8mr4023603wrs.250.1557422269319; Thu, 09 May 2019 10:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557422269; cv=none; d=google.com; s=arc-20160816; b=MvdOQ/56UaPwmV7gTIjMAYsNtyiL0LRAo01sePhBT+j0uaX8LIFjZGC2ISddPEZGO8 OPjN4pQ64nc+MqfXpGEVt12K3ZjP/zAukQZg9PsVO2Mum9dPIH8wU6rl2+3BaDlOMhwP f/Vj2ls58ZAXRCd8h4QKmmsz/NxwsdCdf0z4fa3OmbYXA45O4p/0Oc5SbGEUd1Izwpvl +mBtbBgvuFlLbd3LaGyIJJ5K1q5oKEXwK9wucoaRLBzb16Qax6HcLZj5d5uZ4H+GpVmO FybyiOC/vwFGFvD19esxdmZOwIup6LRKpBFHLUPGFpfprIpu6UvXjwUM7I/a4uqh7xDp 5luA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=muJ0lhsFZDTe5BSnwOJzWaWmbULUUdO9c3pN21PKLLc=; b=P7nFWj+QN/ojePhUa7TgRt0gEaKHRZy4Odz+pz/I1Inf7N9+7VFIDgzY+z4N/uChWh acofhXPlre+fCUQteYUE4DSbatsE9dJjee0thAQMa9eVWtCMIwMzGsiwJOGgm2FmQyom DkPzVEMguGhFuEhStDzclefCkaxvFM+QDyEmrE6zablrmFDQNRV5r/wm05bygimzvbgu XqEmE2Wh/PxXFmF3HkxUo+JkrnhcuD6vEj9AXFbek3Kr8Oz/g7xSCwY8LT3pfKAQ7huF QvceNCKPuDDtgSUKiV3j3de7Q+IEnukASX+xeguzvVpP3DcQcQY6RGXtlX/CmaGVeHwS bp8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=zeaxHLxx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e3si2175115wrx.47.2019.05.09.10.17.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 09 May 2019 10:17:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=zeaxHLxx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:58294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmg0-0006ae-8I for patch@linaro.org; Thu, 09 May 2019 13:17:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOmU6-0003oV-T5 for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOmU4-0008Ci-LU for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:30 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:56074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOmU4-00086D-B5 for qemu-devel@nongnu.org; Thu, 09 May 2019 13:05:28 -0400 Received: by mail-wm1-x32c.google.com with SMTP id y2so4152735wmi.5 for ; Thu, 09 May 2019 10:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=muJ0lhsFZDTe5BSnwOJzWaWmbULUUdO9c3pN21PKLLc=; b=zeaxHLxxcJQveWOqTBef0MWfX70Bj7Y1sFIH5+gmKF3irTA9bmFTKeNHKbKrBC5Dym OTwYpa10ks0jhN0KHt5p+htPZVJIXyj7pdLAi5n5fvd0GoWhnozmD37SdayOESID47gj yzpuhulsGC8IQ+1F/19VZsuUGnxfSJIw/iV1fwZrR76WmKnH0v8b/AKAYxTeKz50l9b2 cZSd4nO1ZWx2k1twx/Yc+2YgXfMPF2h4NjMm0VTm9bhlkT+oVwkI6sM5DGCylC0jzaIU 3ZtL7AMbyOInLJJ8AE3TAHqEUV5LVSiSD9inSe5oL37vx8VedSmPXp6wYA1p+lFAwdfM K9sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=muJ0lhsFZDTe5BSnwOJzWaWmbULUUdO9c3pN21PKLLc=; b=GqCvU8c6e/fWRpUsgpKJQ8sT+jZrOGKRtCPJ5o32MwPXQq1vtDnOuB0GZmqNaVPB/W DezxH2Wh2VELqGcchlsYK3IfwyDIi6WaDefFuy/eQR8bNn3sY4NyfmjFyWLp4khX7Wxh 5DVnBVmXlU7bjcSCC3FwUoE63cOwDpIsp9Up3ZVUkbzv1aMt/oJtbebxX9cFZOT+8GxJ 2n+jEuPG7aqBx8bt4Q5Vi1z6R8oV3mcAtsdXMJ6qa3YCtCsXYj3DXwzozQOb0nAKky/3 73jcH7O2Icphj3Jror/AaLPEmEu/xBHpzVjf9iX1jvSejvjNsWu7HJYmhF9P6tplSlCU T+BA== X-Gm-Message-State: APjAAAUAIYaPoQFexBy3k/mV+fy6NZVPApP8iQHECkbzaOxARcergGNE HnNXHPvw1XQofBXgHc1aafeibw== X-Received: by 2002:a05:600c:552:: with SMTP id k18mr3743590wmc.67.1557421521849; Thu, 09 May 2019 10:05:21 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a184sm3939204wmh.36.2019.05.09.10.05.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 10:05:20 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 609E41FFA3; Thu, 9 May 2019 17:59:13 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 9 May 2019 17:59:04 +0100 Message-Id: <20190509165912.10512-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190509165912.10512-1-alex.bennee@linaro.org> References: <20190509165912.10512-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c Subject: [Qemu-devel] [PATCH v1 16/23] 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: Kevin Wolf , Thomas Huth , "open list:Block layer core" , Max Reitz , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth "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 Reviewed-by: Eric Blake Signed-off-by: Thomas Huth Message-Id: <20190502084506.8009-2-thuth@redhat.com> Signed-off-by: Alex Bennée --- tests/qemu-iotests/005 | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.20.1 Reviewed-by: Richard Henderson diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index 2fef63af882..9c7681c19bc 100755 --- a/tests/qemu-iotests/005 +++ b/tests/qemu-iotests/005 @@ -55,6 +55,15 @@ if [ "$IMGPROTO" = "sheepdog" ]; then _notrun "image protocol $IMGPROTO does not support large image sizes" fi +# 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 continuing. +if [ "$IMGFMT" = "raw" ]; then + if ! truncate --size=5T "$TEST_IMG"; then + _notrun "file system on $TEST_DIR does not support large enough files" + fi + rm "$TEST_IMG" +fi + echo echo "creating large image" _make_test_img 5000G