[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-io: Fix handling of bdrv_is_allocated() re
From: |
Christoph Hellwig |
Subject: |
Re: [Qemu-devel] [PATCH] qemu-io: Fix handling of bdrv_is_allocated() return value |
Date: |
Thu, 9 Apr 2009 15:26:29 +0200 |
User-agent: |
Mutt/1.3.28i |
On Thu, Apr 09, 2009 at 03:05:27PM +0200, Kevin Wolf wrote:
> bdrv_is_allocated() returns a boolean which indicates if the offset is
> allocated, not 0 on success and everything else is an error.
Yeah, the handling wa wrong before. But a return value of 0 and *pnum =
0 seems to be a special error-ish value still which we might want to
handle.