Received: from eggs.gnu.org ([2001:4830:134:3::10]:55121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmHYO-0000n3-5h for qemu-devel@nongnu.org; Tue, 20 Sep 2016 05:41:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmHYJ-0003v7-VZ for qemu-devel@nongnu.org; Tue, 20 Sep 2016 05:41:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmHYJ-0003u3-Q2 for qemu-devel@nongnu.org; Tue, 20 Sep 2016 05:41:23 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8E60976A0C for ; Tue, 20 Sep 2016 09:41:22 +0000 (UTC) Date: Tue, 20 Sep 2016 11:36:54 +0200 From: =?UTF-8?B?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Message-ID: <20160920113654.73d4a77a@fiorina> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] Fixes to qemu-nbd (--offset/--image-size) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org The two patches basically "fix" the usage of --offset in qemu-nbd. The first patch fixes the issue that when offset is used the device size is not updated and the client may request read/write beyond the end of the file. Second patch adds new argument --image-size to hard set the size of the device. This is useful in combination with --offset when the image is embedded in a file, but does not span to the end of the file. Tom=C3=A1=C5=A1 Golembiovsk=C3=BD (2): qemu-nbd: Shrink image size by specified offset qemu-nbd: Add --image-size option qemu-nbd.c | 43 ++++++++++++++++++++++++++++++++++++++----- qemu-nbd.texi | 4 ++++ 2 files changed, 42 insertions(+), 5 deletions(-) --=20 2.9.3