From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [REPOST] [PATCH 0/2] IDE error checking
Date: Sat, 06 Sep 2008 22:00:27 -0500 [thread overview]
Message-ID: <48C343CB.2000208@codemonkey.ws> (raw)
In-Reply-To: <18620.5409.570126.428085@mariner.uk.xensource.com>
Ian Jackson wrote:
> In these two patches I make the IDE controller emulation pay attention
> to errors returned by the bdrv functions.
>
> The first of these patches was first posted in February 2008 and has
> been discussed extensively.
>
> There was some discussion as to whether it would be better, in cases
> where the error was ENOSPC, to stop the guest than to pass it an IDE
> error. However it must be clear that regardless of whether that would
> be better in some circumstances, giving the guest an IDE error is
> better than silently ignoring the error, throwing away the guest's
> data.
>
The proper solution is not significantly more difficult. Just add a
switch(errno) { case ENOSPC: vm_stop(0); term_printf("Ran out of disk
space\n"); break; }. That's all I'm asking for.
Regards,
Anthony Liguori
> I would therefore submit that my patch should be applied immediately.
> If anyone wants to implement automatic stopping of guests on ENOSPC
> errors this should then be done as an optional enhancement.
>
> In this patch pair I don't fix the call to bdrv_flush in FLUSH CACHE.
> This is because that's entangled with another dropped series of
> patches to implement use of aio for cache flushing and guest control
> of the host write cache.
>
> Ian.
>
>
>
next prev parent reply other threads:[~2008-09-07 3:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-01 16:15 [Qemu-devel] [REPOST] [PATCH 0/2] IDE error checking Ian Jackson
2008-09-01 16:02 ` [Qemu-devel] [PATCH 1/2] Actually check read/write errors when doing IDE DMA and IDE PIO writes Ian Jackson
2008-09-01 16:22 ` [Qemu-devel] [PATCH 2/2] [ide] Check that asynchronous (DMA) submission succeeds Ian Jackson
2008-09-07 3:00 ` Anthony Liguori [this message]
2008-09-17 2:20 ` [Qemu-devel] [REPOST] [PATCH 0/2] IDE error checking andrzej zaborowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48C343CB.2000208@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.