qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] dmg: fix ->open failure


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] dmg: fix ->open failure
Date: Mon, 11 Jan 2010 14:56:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0

Am 11.01.2010 14:46, schrieb Christoph Hellwig:
> On Mon, Jan 11, 2010 at 02:43:59PM +0100, Kevin Wolf wrote:
>> Am 11.01.2010 14:06, schrieb Christoph Hellwig:
>>>
>>> Currently the dmg image format driver simply opens the images as raw
>>> if any kind of failure happens.  This is contrarty to the behaviour
>>> of all other image formats which just return an error and let the
>>> block core deal with it.
>>>
>>> Signed-off-by: Christoph Hellwig <address@hidden>
>>
>> Acked-by: Kevin Wolf <address@hidden>
>>
>> I mean looking at the patched code I see lots of things that are wrong,
>> but they are all unrelated to your change: There are error cases where
>> memory is leaked, and it should use bdrv_* functions instead of the
>> native open/read/etc. And obviously coding style is completely off (most
>> annoying: tabs!)
> 
> Yes, the code pretty much is a mess, but I didn't really want to touch
> it.  I just looked into picking up your search host_ for raw patches and
> was looking for all the block image driver functionality in the tree.

Are you going to propose a cleaner patch? I have currently some other
bugs to do first, but I was certainly planning to do so. However, I'll
happily leave it to you if you have the time right now.

For dmg, I'm not even sure if it's worth fixing. Does anybody use this
driver? But I guess it's good enough for another lowest priority task on
my todo list. Right after vvfat or so...

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]