From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhJoO-0008AU-4t for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhJoI-0007TJ-0Z for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:56:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhJoH-0007T9-PJ for qemu-devel@nongnu.org; Thu, 23 Oct 2014 10:56:17 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9NEuH6n003805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 23 Oct 2014 10:56:17 -0400 From: Max Reitz Date: Thu, 23 Oct 2014 16:56:13 +0200 Message-Id: <1414076175-17034-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] block: JSON filenames and relative backing files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Sometimes, qemu does not have a filename to work with (it then generates a JSON filename), so it does not know which directory to use for a backing file specified by a relative filename. In this case, qemu should not somehow try to append the backing file's name to the JSON object, but rather just print an error and bail out. Max Reitz (2): block: JSON filenames and relative backing files iotests: Add test for relative backing file names block.c | 19 +++++++--- block/qapi.c | 7 +++- include/block/block.h | 2 +- tests/qemu-iotests/110 | 87 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/110.out | 15 ++++++++ tests/qemu-iotests/group | 1 + 6 files changed, 125 insertions(+), 6 deletions(-) create mode 100755 tests/qemu-iotests/110 create mode 100644 tests/qemu-iotests/110.out -- 1.9.3