On Mon, Apr 13, 2009 at 09:28:28AM -0400, Chris Mason wrote: > On Sun, 2009-04-12 at 02:03 +0200, Harald Glatt wrote: > > Hi, > > > > I have set up a btrfs within a 200 GB file that I mount via -o loop. > > > > It worked fine so far but today it crashed when there was alot of > > concurrent writing/reading going on. > > I'm testing it with a torrent client, so the data is really irrelevant > > - but it's a good amount of stress. > > > > Loopback is somewhat tricky because the kernel loopback driver only > writes into the page cache of the underlying file in the host > filesystem. So, the filesystem inside the loopback file thinks it has > written things to disk but in reality it is just in cache. > > If you crash in the middle of all of this, you're going to see > significant corruptions of the FS inside the loopback file. There's a patch floating around to add barrier support to the loop driver to fix this issue. I hoped it would get merged for 2.6.30 but it's not in yet. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
