Re: Warning and BUG with btrfs and corrupted image

2009-01-20 Thread Pavel Machek
Hi! Thanks for looking at things Aside from catching checksumming errors, we're not quite ready for fuzzer style attacks. The code will be hardened for this but it isn't yet. Does this mean i should stop trying to break it for now or are you interested in

Re: Warning and BUG with btrfs and corrupted image

2009-01-20 Thread Dave Chinner
On Tue, Jan 20, 2009 at 07:31:50AM +0100, Eric Sesterhenn wrote: * Pavel Machek (pa...@suse.cz) wrote: Does ext2/3 and vfat survive that kind of attacks? Those are 'in production' and should survive it... I regularly (once or twice a week) test 100 corrupted images of vfat, udf, msdos,

Re: Warning and BUG with btrfs and corrupted image

2009-01-20 Thread Eric Sesterhenn
* Dave Chinner (da...@fromorbit.com) wrote: On Tue, Jan 20, 2009 at 07:31:50AM +0100, Eric Sesterhenn wrote: * Pavel Machek (pa...@suse.cz) wrote: Does ext2/3 and vfat survive that kind of attacks? Those are 'in production' and should survive it... I regularly (once or twice a week)

Re: btrfs and swap files on SSD's ?

2009-01-20 Thread Kaspar Schleiser
Hey Cris, Chris Mason wrote: This doesn't quite play nicely with btrfs and should lead to all kinds of problemsI'm looking into how to disable swapfiles completely. Please try to support swapfiles. I know their drawbacks and still use them quite often. Cheers Kaspar -- To unsubscribe

Re: Warning and BUG with btrfs and corrupted image

2009-01-20 Thread Chris Mason
On Tue, 2009-01-20 at 07:31 +0100, Eric Sesterhenn wrote: Hi, * Pavel Machek (pa...@suse.cz) wrote: Does ext2/3 and vfat survive that kind of attacks? Those are 'in production' and should survive it... I regularly (once or twice a week) test 100 corrupted images of vfat, udf,

Re: btrfs and swap files on SSD's ?

2009-01-20 Thread Dmitri Nikulin
On Wed, Jan 21, 2009 at 12:02 AM, Chris Mason chris.ma...@oracle.com wrote: There are patches to support swap over NFS that might make it safe to use on btrfs. At any rate, it is a fixable problem. FreeBSD has been able to run swap over NFS for as long as I can remember, what is different in

Re: btrfs and swap files on SSD's ?

2009-01-20 Thread Anthony Roberts
The second is an implementation detail of the linux swap file code. It expects filesystems don't move blocks around, and takes a mapping of the blocks in the FS once. This doesn't work with btrfs because we do move blocks around all the time. That's interesting. I have a few questions:

Re: gcc inlining heuristics was Re: [PATCH -v7][RFC]: mutex: implement adaptive spinning

2009-01-20 Thread David Woodhouse
On Tue, 2009-01-20 at 13:38 +0100, Ingo Molnar wrote: * Nick Piggin npig...@suse.de wrote: it seems like a nice opt-in thing that can be used where the aliases are verified and the code is particularly performance critical... Yes. I think we could use it in the kernel,

Re: [PATCH] btrfsck: Exit and print error message when not able to open device

2009-01-20 Thread Zach Carter
On Friday 16 January 2009 16:27:57 Thadeu Lima de Souza Cascardo wrote: +               fprintf (stderr, Coult not open %s\n, filename); Coult should be Could. Other than that, the patch seems to fix the segfault issue for me. thanks, -Zach -- To unsubscribe from this list: send the line

[Discussion] Extent Block Group allocations

2009-01-20 Thread ashford
Hi all, I searched the archives, and didn't find any answers to my questions, so I think it's time to ask. From: http://btrfs.wiki.kernel.org/index.php/Btrfs_design#Extent_Block_Groups Block groups have a flag that indicate if they are preferred for data or metadata

Re: [Discussion] Extent Block Group allocations

2009-01-20 Thread Chris Mason
On Tue, 2009-01-20 at 12:54 -0800, ashf...@whisperpc.com wrote: Hi all, I searched the archives, and didn't find any answers to my questions, so I think it's time to ask. From: http://btrfs.wiki.kernel.org/index.php/Btrfs_design#Extent_Block_Groups Block groups have a flag that

Re: gcc inlining heuristics was Re: [PATCH -v7][RFC]: mutex: implement adaptive spinning

2009-01-20 Thread H. Peter Anvin
Ingo Molnar wrote: Hm, GCC uses __restrict__, right? I'm wondering whether there's any internal tie-up between alias analysis and the __restrict__ keyword - so if we turn off aliasing optimizations the __restrict__ keyword's optimizations are turned off as well. Actually I suspect that

Re: Warning and BUG with btrfs and corrupted image

2009-01-20 Thread Dave Chinner
On Tue, Jan 20, 2009 at 11:20:19PM +0100, Pavel Machek wrote: On Tue 2009-01-20 08:28:29, Christoph Hellwig wrote: On Tue, Jan 20, 2009 at 11:59:44PM +1100, Dave Chinner wrote: So far the responses from xfs folks have been disappointing, if you are interested in bugreports i can send

Re: btrfs and swap files on SSD's ?

2009-01-20 Thread Andi Kleen
Dmitri Nikulin dniku...@gmail.com writes: On Wed, Jan 21, 2009 at 12:02 AM, Chris Mason chris.ma...@oracle.com wrote: There are patches to support swap over NFS that might make it safe to use on btrfs. At any rate, it is a fixable problem. FreeBSD has been able to run swap over NFS for as