From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wx1e2-0008OP-Ls for qemu-devel@nongnu.org; Tue, 17 Jun 2014 18:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wx1dw-00009S-7k for qemu-devel@nongnu.org; Tue, 17 Jun 2014 18:14:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wx1dv-000098-W0 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 18:14:16 -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 s5HMEFen026202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 18:14:15 -0400 From: Max Reitz Date: Wed, 18 Jun 2014 00:14:08 +0200 Message-Id: <1403043250-28472-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] block: Fix unset "filename" for certain drivers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz For some protocol block drivers, the "filename" attribute in their BDSs is unset due to bdrv_file_open() removing it from the options QDict before bdrv_open_common() is able to copy it into the BDS. Fix this by not removing it until until bdrv_open_common() has indeed copied it. Max Reitz (2): block: Do not prematurely remove "filename" iotests: Add test for set "filename" for NBD block.c | 12 ++++++-- tests/qemu-iotests/097 | 72 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/097.out | 13 +++++++++ tests/qemu-iotests/group | 1 + 4 files changed, 95 insertions(+), 3 deletions(-) create mode 100755 tests/qemu-iotests/097 create mode 100644 tests/qemu-iotests/097.out -- 2.0.0