All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Giel de Nijs <giel@vectorwise.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Possible ext4 data corruption with large files and async I/O
Date: Fri, 29 Jan 2010 09:30:53 -0600	[thread overview]
Message-ID: <4B62FF2D.2070001@redhat.com> (raw)
In-Reply-To: <4B62F688.70404@vectorwise.com>

Giel de Nijs wrote:
> Dear ext4 devs,
> 
> Today I hit a situation where seemingly blocks did not get written to
> disk. I've narrowed it down to the following test case.
> 
> Running Fedora Core 12 with kernel 2.6.31.9-174.fc12.x86_64, both on an
> i7 920 and a Core2 Q6600, I executed the following steps:
> 
> - create a file
> - with kernel async i/o, write a 512kb (haven't tried other sizes) block
> to an offset >4GB, effectively creating a large sparse file
> - again with async i/o, write a 512kb block to an offset smaller than
> the previous write, but >4GB
> - wait for the kernel async i/o to tell you the writes have succeeded
> 
> Now, looking at the file, the second write never seems to have happened.
> When doing this on the same machines on ext3, the behavior is as expected.
> 
> As far as I can tell (from the bigger program that triggered this), all
> writes >4GB but < EOF to a sparse file with async i/o aren't executed.
> When creating a large file first (i.e., with dd), everything does work
> as expected.
> 
> Attached is some C code that triggers this bug for me.
> 
> If you need more information or want me to test some more things, please
> do ask.

Thanks, I can reproduce this as well - and yep works ok on ext3 & xfs,
so looks like an ext4 bug indeed.  I'll look into it.

-Eric

> Thanks,
> Giel de Nijs
> VectorWise
> 


  parent reply	other threads:[~2010-01-29 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29 14:54 Possible ext4 data corruption with large files and async I/O Giel de Nijs
2010-01-29 15:30 ` Nick Dokos
2010-01-29 15:49   ` Nick Dokos
2010-01-29 15:30 ` Eric Sandeen [this message]
2010-01-29 18:18 ` Eric Sandeen

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=4B62FF2D.2070001@redhat.com \
    --to=sandeen@redhat.com \
    --cc=giel@vectorwise.com \
    --cc=linux-ext4@vger.kernel.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.