Re: btrfsck crashes

2012-07-11 Thread Anand Jain
If this is a deliberate corruption can you pls share the test-case ? if not have you tried mount with recovery and the scrub. ? scrub would be preferred choice over btrfsck. On 10/07/12 19:08, haveanice...@cv-sv.de wrote: This code should detect the problem without SIGSEGV but a

Re: btrfsck crashes

2012-07-11 Thread haveanice...@cv-sv.de
Anand Jain anand.j...@oracle.com hat am 11. Juli 2012 um 09:13 geschrieben: If this is a deliberate corruption can you pls share the test-case ? No. It's a real life corruption on a file system used to back up some servers. That's also why basics like aquota,awk etc. are found. But I

R: Re: 3.5.0-rc6: btrfs and LVM snapshots - wrong devicename in /proc/mounts

2012-07-11 Thread kreij...@inwind.it
Messaggio originale Da: a...@arndnet.de Data: 10/07/2012 22.09 A: kreij...@inwind.it Cc: Goffredo Baroncellikreij...@libero.it, Christian Robertchristian. rob...@polymtl.ca, linux-btrfs@vger.kernel.org Ogg: Re: 3.5.0-rc6: btrfs and LVM snapshots -gt; wrong devicename in /proc/mounts Hi

Re: [PATCH RFC] Btrfs: improve multi-thread buffer read

2012-07-11 Thread Josef Bacik
On Tue, Jul 10, 2012 at 07:57:55PM -0600, Liu Bo wrote: On 07/11/2012 02:58 AM, Josef Bacik wrote: On Tue, Jul 10, 2012 at 05:27:59AM -0600, Liu Bo wrote: While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs:

Re: [PATCH RFC] Btrfs: improve multi-thread buffer read

2012-07-11 Thread Liu Bo
On 07/11/2012 08:31 PM, Josef Bacik wrote: On Tue, Jul 10, 2012 at 07:57:55PM -0600, Liu Bo wrote: On 07/11/2012 02:58 AM, Josef Bacik wrote: On Tue, Jul 10, 2012 at 05:27:59AM -0600, Liu Bo wrote: While testing with my buffer read fio jobs[1], I find that btrfs does not perform well

Re: [PATCH] Btrfs: allow delayed refs to be merged

2012-07-11 Thread Jan Schmidt
Hi Josef, I hit a warning with this patch on top of the current cmason/for-linus branch. Takes about 15 minutes to produce when running xfstest 278 in a loop and, in another shell, doing fsstress on the same volume to force metadata modifications. fs/btrfs/extent-tree.c ... 5032 } else

Re: [PATCH RFC] Btrfs: improve multi-thread buffer read

2012-07-11 Thread Josef Bacik
On Tue, Jul 10, 2012 at 05:27:59AM -0600, Liu Bo wrote: While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, t1 t2 t3 t4, starting to buffer read a same file, and all of them will race on

Re: Can't mount, power failure - recoverable?

2012-07-11 Thread Skylar Burtenshaw
Skylar Burtenshaw daninfuchs at gmail.com writes: Chris Mason chris.mason at oracle.com writes: Which kernel was used during the power outage? The kernel in use was 2.6.38 or so. Didn't write that down, but I'm fairly certain it was .38 or .37 - sorry I can't be more precise. Here's

Re: [PATCH RFC] Btrfs: improve multi-thread buffer read

2012-07-11 Thread Liu Bo
On 07/12/2012 01:21 AM, Josef Bacik wrote: On Tue, Jul 10, 2012 at 05:27:59AM -0600, Liu Bo wrote: While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, t1 t2 t3 t4, starting to buffer read a same

Re: [PATCH] Btrfs: kill free_space pointer from inode structure

2012-07-11 Thread Li Zefan
On 2012/7/11 3:29, Josef Bacik wrote: On Mon, Jul 09, 2012 at 08:21:07PM -0600, Li Zefan wrote: Inodes always allocate free space with BTRFS_BLOCK_GROUP_DATA type, which means every inode has the same BTRFS_I(inode)-free_space pointer. This shrinks struct btrfs_inode by 4 bytes (or 8 bytes

[PATCH v2] Btrfs: improve multi-thread buffer read

2012-07-11 Thread Liu Bo
While testing with my buffer read fio jobs[1], I find that btrfs does not perform well enough. Here is a scenario in fio jobs: We have 4 threads, t1 t2 t3 t4, starting to buffer read a same file, and all of them will race on add_to_page_cache_lru(), and if one thread successfully puts its page

file system corruption removal / documentation quandry

2012-07-11 Thread eric gisse
While spinning up a nice new laptop, I needed to stage my Gentoo install through Ubuntu so I could use EFI. The problem with this is that my newly created and mounted btrfs was crashed multiple times because Ubuntu wanted to be awful and unstable. This isn't a complaint about Ubuntu, it knows

Re: file system corruption removal / documentation quandry

2012-07-11 Thread Fajar A. Nugraha
On Thu, Jul 12, 2012 at 12:13 PM, eric gisse jowr...@gmail.com wrote: Basically, phoronix showed there is a --repair option. After enabling snapshotting and playing around with the various discussed options, I discovered that --repair and no special mount options was sufficient to get the