Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 468CAC7618B for ; Wed, 24 Jul 2019 16:29:25 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E9BA21871 for ; Wed, 24 Jul 2019 16:29:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E9BA21871 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:53220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqK8q-0002C7-1K for qemu-devel@archiver.kernel.org; Wed, 24 Jul 2019 12:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35465) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqK8e-0001iJ-Qj for qemu-devel@nongnu.org; Wed, 24 Jul 2019 12:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqK8d-0006AD-ER for qemu-devel@nongnu.org; Wed, 24 Jul 2019 12:29:12 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqK8d-00067c-5S for qemu-devel@nongnu.org; Wed, 24 Jul 2019 12:29:11 -0400 Received: by mail-wm1-f68.google.com with SMTP id g67so38086059wme.1 for ; Wed, 24 Jul 2019 09:29:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AowYCe8Fo7IcCrPVplUSfLv9ZDfRSSU+4bDxMcC3rf8=; b=YWAXXcONyY0XAkVlfkNd/o5riIZ6k0PSB0WhsmBgWIYGfAdyVph1iod9+MdG9pVoSS Y1T9H35s2sChrkcVNsQFbFG6IDMKNK3czRr326hGAUiGil42h6V3K1ukdSMDFJADPu39 YXHaEpP7VFWMsA3y+RUlEYjt/PBfr4r6AXZl/I3XszyacZzOh5FUlATJQKpQYzZqWTdU zRugLESrZKelPcCD+Nfu8YFkix5Hu0aD8q6ARZy0YSbxW9+XOBqoUqXYwKuD00vU7QUn zDsmy2GhioEyC8mELyOPufdTugB1SMa7HAuz113KdszyrF5mczveW3ImD2659Mmxwxlj YnDw== X-Gm-Message-State: APjAAAUncdX9WK4S62C0yUhAN+4CAAO5itECoY256NKPOt/ZlJjRY7JU AJK29hPZOPiFntcpfP+MpiGB3A== X-Google-Smtp-Source: APXvYqwhgzgpwWByh3/eH9tJDbzKYyPdySykih0CkV/i2YgLj+WuK6fuQkIp8tFquWCcl+ARvhVgYg== X-Received: by 2002:a7b:c251:: with SMTP id b17mr405153wmj.143.1563985750018; Wed, 24 Jul 2019 09:29:10 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id x11sm33224669wmi.26.2019.07.24.09.29.09 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 09:29:09 -0700 (PDT) To: Thomas Huth , Qemu-block , QEMU Developers References: From: Paolo Bonzini Message-ID: Date: Wed, 24 Jul 2019 18:29:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.68 Subject: Re: [Qemu-devel] qemu-iotests 069 and 111 are failing on NetBSD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kamil Rytarowski , Gerd Hoffmann , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 24/07/19 11:34, Thomas Huth wrote: > In case somebody is interested, two of the "auto" iotests are failing > on NetBSD due to non-matching output: > > TEST iotest-qcow2: 069 [fail] > --- /var/tmp/qemu-test.1BMupF/tests/qemu-iotests/069.out 2019-07-24 09:19:22.000000000 +0000 > +++ /var/tmp/qemu-test.1BMupF/tests/qemu-iotests/069.out.bad 2019-07-24 09:21:34.000000000 +0000 > @@ -4,5 +4,5 @@ > > Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=131072 > Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base > -qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not open backing file: Could not open 'TEST_DIR/t.IMGFMT.base': No such file or directory > +qemu-io: can't open device TEST_DIR/t.IMGFMT: Could not open backing file: TEST_DIR/t.IMGFMT.base: stat failed: No such file or directory > *** done > > and: > > TEST iotest-qcow2: 111 [fail] > --- /var/tmp/qemu-test.1BMupF/tests/qemu-iotests/111.out 2019-07-24 09:19:22.000000000 +0000 > +++ /var/tmp/qemu-test.1BMupF/tests/qemu-iotests/111.out.bad 2019-07-24 09:21:40.000000000 +0000 > @@ -1,4 +1,4 @@ > QA output created by 111 > -qemu-img: TEST_DIR/t.IMGFMT: Could not open 'TEST_DIR/t.IMGFMT.inexistent': No such file or directory > +qemu-img: TEST_DIR/t.IMGFMT: TEST_DIR/t.IMGFMT.inexistent: stat failed: No such file or directory > Could not open backing image to determine size. > *** done > > It's currently not a problem yet since we're not running the > iotests on NetBSD yet (since our netbsd VM image does not have > bash and gsed installed yet), but if somebody has some spare > minutes, it would be great if this could be fixed so that we > can enable the iotests on NetBSD, too, one day... Is this (slightly ridiculous but effective) patch enough? diff --git a/block/file-posix.c b/block/file-posix.c index 73a001ceb7..ce847f4d62 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -217,7 +217,7 @@ static int raw_normalize_devicepath(const char **filename, Error **errp) fname = *filename; dp = strrchr(fname, '/'); if (lstat(fname, &sb) < 0) { - error_setg_errno(errp, errno, "%s: stat failed", fname); + error_setg_errno(errp, errno, "Could not open: '%s'", fname); return -errno; } Paolo