qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Stop VM on ENOSPC error
Date: Wed, 14 Jan 2009 18:37:02 +0000	[thread overview]
Message-ID: <20090114183702.GH6431@shareable.org> (raw)
In-Reply-To: <20090114173044.GS24995@redhat.com>

Daniel P. Berrange wrote:
> > A corrupt VM with data loss sounds much worse than a stopped VM to me.
> 
> You're not corrupting data in current code - you're just unable to finish
> new writes, because an IO failure is propagated back to the guest. If the
> guest is properly checking for & handling I/O failures, it should be pretty
> much OK once the host space problem is resolved - perhaps a reboot + journal
> recovery. 

Think about journalling filesystem writes.  If one returns I/O error,
some following queued requests must not proceed, otherwise it puts the
filesystem in an inconsistent state.  That's what I mean by corruption.

What that in mind, please name any OS which properly checks for and
handles write I/O errors, aside from reporting EIO to apps.  I'm
pretty sure Linux is not among them.

(Heck, even ENOSPC isn't handled well in apps.  Why, I remember the
time Firefox corrupted by Bookmarks by storing a zero-length file due
to ENOSPC...  I remember a few times when after Make I had zero-length
.o object files, and we're not talking about my personal crappy
Makefiles but good quality ones, etc.  This seems to be quite common.)

-- Jamie

  parent reply	other threads:[~2009-01-14 18:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 12:03 [Qemu-devel] [PATCH] Stop VM on ENOSPC error Gleb Natapov
2009-01-14 12:11 ` Daniel P. Berrange
2009-01-14 12:20   ` Dor Laor
2009-01-14 13:52     ` Gleb Natapov
2009-01-14 14:28       ` Kevin Wolf
2009-01-14 16:46   ` Jamie Lokier
2009-01-14 17:30     ` Daniel P. Berrange
2009-01-14 18:29       ` Anthony Liguori
2009-01-14 18:37       ` Jamie Lokier [this message]
2009-01-14 16:47 ` Jamie Lokier
2009-01-14 17:01   ` Gleb Natapov
2009-01-14 18:39     ` Jamie Lokier
2009-01-14 19:24       ` Gleb Natapov

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=20090114183702.GH6431@shareable.org \
    --to=jamie@shareable.org \
    --cc=berrange@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).