From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8Cb-0006r0-0V for qemu-devel@nongnu.org; Mon, 22 Sep 2014 14:19:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW8CU-0005DI-Lh for qemu-devel@nongnu.org; Mon, 22 Sep 2014 14:19:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8CU-0005Cv-EM for qemu-devel@nongnu.org; Mon, 22 Sep 2014 14:19:02 -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 s8MFNmRt017889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 22 Sep 2014 11:23:49 -0400 From: Max Reitz Date: Mon, 22 Sep 2014 17:23:43 +0200 Message-Id: <1411399425-23430-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] raw-posix: Fix raw_co_get_block_status() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi , Max Reitz raw_co_get_block_status() should return 0 and set *pnum to 0 after the EOF; currently it does this merely by accident, so implement it directly. While doing that, centralize the generation of raw_co_get_block_status()'s return value along the way. Max Reitz (2): raw-posix: Fix raw_co_get_block_status() after EOF raw-posix: raw_co_get_block_status() return value block/raw-posix.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) -- 2.1.0