Received: from eggs.gnu.org ([140.186.70.92]:59494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIl5U-000486-Kv for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:46:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIl5T-0000TB-TY for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:46:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIl5T-0000Sn-Kx for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:46:55 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9PHksUC017609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Oct 2011 13:46:54 -0400 From: Markus Armbruster References: <1319563138-21631-1-git-send-email-quintela@redhat.com> Date: Tue, 25 Oct 2011 19:46:52 +0200 In-Reply-To: <1319563138-21631-1-git-send-email-quintela@redhat.com> (Juan Quintela's message of "Tue, 25 Oct 2011 19:18:58 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] savevm: qemu_fille_buffer() used to return one error for reads of size 0. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org Juan Quintela writes: > Signed-off-by: Juan Quintela > --- > savevm.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/savevm.c b/savevm.c > index f01838f..bee16c0 100644 > --- a/savevm.c > +++ b/savevm.c > @@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile *f) > if (len > 0) { > f->buf_size += len; > f->buf_offset += len; > + } else if (len == 0) { > + f->last_error = -EIO; > } else if (len != -EAGAIN) > f->last_error = len; > } This reverts an accidental change in commit dcd1d224 migration: change has_error to contain errno values. Reviewed-by: Markus Armbruster