How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Chu Duc Minh
Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some devices/partitions? Btrfs has option to specify it explicitly? 2. suppose i have a directory tree like that: Dir_1  |-- file_1A  |-- file_1B  |-- Dir_2    

Re: How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Fajar A. Nugraha
On Thu, May 3, 2012 at 1:46 PM, Chu Duc Minh chu.ducm...@gmail.com wrote: Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some devices/partitions? IIRC: - in raid1 mode, it will be written on all disks

Re: How file store when using Btrfs on multi-devices? What happen when a device fail?

2012-05-03 Thread Hugo Mills
On Thu, May 03, 2012 at 01:56:10PM +0700, Fajar A. Nugraha wrote: On Thu, May 3, 2012 at 1:46 PM, Chu Duc Minh chu.ducm...@gmail.com wrote: Hi, i have some questions when using Btrfs on multi-devices: 1. a large file will always be stored wholely on a device or it may spread on some

[PATCH] Btrfs: fix crash in scrub repair code when device is missing

2012-05-03 Thread Stefan Behrens
Fix that when scrub tries to repair an I/O or checksum error and one of the devices containing the mirror is missing, it crashes in bio_add_page because the bdev is a NULL pointer for missing devices. Reported-by: Marco L. Crociani marco.croci...@gmail.com Signed-off-by: Stefan Behrens

ran cppcheck and going to make cosmetic changes--where do I submit code?

2012-05-03 Thread Josh Marshall
I ran cppcheck on btrfs and it looks like it says there could be a few cosmetic changes, such as reducing the scope of some variables. I'm guessing that it won't be too terrible if I do make the changes, but where do I submit the code when I'm done? P.S. This is my first kernel project, so

Re: [PATCH v2 1/5] btrfs: add command to zero out superblock

2012-05-03 Thread Hubert Kario
On Wednesday 02 of May 2012 19:36:29 David Sterba wrote: On Wed, May 02, 2012 at 06:42:16PM +0200, Hubert Kario wrote: I'm not sure if this is useful and sensible usecase, clearing superblock is a one-time action anyway, so it's more for the sake of tool flexibility. Clearing

Re: ran cppcheck and going to make cosmetic changes--where do I submit code?

2012-05-03 Thread Hubert Kario
On Thursday 03 of May 2012 09:06:31 Josh Marshall wrote: I ran cppcheck on btrfs and it looks like it says there could be a few cosmetic changes, such as reducing the scope of some variables. I'm guessing that it won't be too terrible if I do make the changes, but where do I submit the code

Re: Create subvolume from a directory?

2012-05-03 Thread Hubert Kario
On Wednesday 02 of May 2012 18:33:37 David Sterba wrote: On Tue, May 01, 2012 at 07:09:21PM +0200, Hubert Kario wrote: Let me rephrase it: People don't want to be able to do: mount /dev/lvm/btrfs /mnt/a -t btrfs -o subvol=volA mount /dev/lvm/btrfs /mnt/b -t btrfs -o subvol=volB cp

Re: Boot speed/mount time regression with 3.4.0-rc2

2012-05-03 Thread Ahmet Inan
On Sat, Apr 21, 2012 at 10:54 PM, Ahmet Inan ai...@mathematik.uni-freiburg.de wrote: On Fri, Apr 13, 2012 at 3:47 PM, Josef Bacik jo...@redhat.com wrote: On Fri, Apr 13, 2012 at 02:26:19PM +0200, Ahmet Inan wrote: On Fri, Apr 13, 2012 at 1:22 PM, Ahmet Inan ai...@mathematik.uni-freiburg.de

[PATCH] Fix break before assignment

2012-05-03 Thread Daniel J Blueman
Fix control flow to store count before breaking loop. Signed-off-by: Daniel J Blueman dan...@quora.org --- fs/btrfs/ctree.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index e801f22..2227420 100644 --- a/fs/btrfs/ctree.c +++

[PATCH 1/1] btrfs: Fix mismatching struct members in ioctl.h

2012-05-03 Thread Alexander Block
Fix the size members of btrfs_ioctl_ino_path_args and btrfs_ioctl_logical_ino_args. The user space btrfs-progs utilities used __u64 and the kernel headers used __u32 before. Signed-off-by: Alexander Block abloc...@googlemail.com --- fs/btrfs/ioctl.h |4 ++-- 1 files changed, 2 insertions(+),

Re: Hot data Tracking

2012-05-03 Thread Waxhead
David Sterba wrote: On Sat, Feb 11, 2012 at 05:49:41AM +0100, Timo Witte wrote: What happened to the hot data tracking feature in btrfs? There are a lot of old patches from aug 2010, but it looks like the feature has been completly removed from the current version of btrfs. Is this feature

Re: Ceph on btrfs 3.4rc

2012-05-03 Thread Josef Bacik
On Fri, Apr 27, 2012 at 01:02:08PM +0200, Christian Brunner wrote: Am 24. April 2012 18:26 schrieb Sage Weil s...@newdream.net: On Tue, 24 Apr 2012, Josef Bacik wrote: On Fri, Apr 20, 2012 at 05:09:34PM +0200, Christian Brunner wrote: After running ceph on XFS for some time, I decided to

Re: [PATCH] Fix break before assignment

2012-05-03 Thread Daniel J Blueman
On 3 May 2012 22:04, David Sterba d...@jikos.cz wrote: On Thu, May 03, 2012 at 09:44:49PM +0800, Daniel J Blueman wrote: Fix control flow to store count before breaking loop. http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg10483.html but it's a dead code anyway. Noted. Chris, is

Re: kernel BUG at fs/btrfs/extent_io.c:3982!

2012-05-03 Thread Jim Schutt
On 05/01/2012 10:41 AM, Jim Schutt wrote: On 05/01/2012 10:00 AM, Josef Bacik wrote: On Wed, Apr 11, 2012 at 02:24:30PM -0600, Jim Schutt wrote: On 04/11/2012 01:09 PM, Josef Bacik wrote: On Tue, Apr 10, 2012 at 01:39:14PM -0600, Jim Schutt wrote: Hi, I hit this BUG today. I'm running

Re: [PATCH] Fix break before assignment

2012-05-03 Thread David Sterba
On Thu, May 03, 2012 at 09:44:49PM +0800, Daniel J Blueman wrote: Fix control flow to store count before breaking loop. http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg10483.html but it's a dead code anyway. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in

Can't mount

2012-05-03 Thread Yo'av Moshe
Hey, When I try to mount my Btrfs filesystem it fails and this shows up on dmesg: device fsid 97727502-a678-4ed1-a96c-409b852d76bf devid 1 transid 135714 /dev/sda4 btrfs: enabling auto recoveryparent transid verify failed on 216925220864 wanted 135714 found 135713 parent transid verify failed on

Re: Ceph on btrfs 3.4rc

2012-05-03 Thread Josef Bacik
On Thu, May 03, 2012 at 08:17:43AM -0700, Josh Durgin wrote: On Thu, 3 May 2012 10:13:55 -0400, Josef Bacik jo...@redhat.com wrote: On Fri, Apr 27, 2012 at 01:02:08PM +0200, Christian Brunner wrote: Am 24. April 2012 18:26 schrieb Sage Weil s...@newdream.net: On Tue, 24 Apr 2012, Josef

Re: Can't mount

2012-05-03 Thread Hugo Mills
On Thu, May 03, 2012 at 03:18:01PM +, Yo'av Moshe wrote: Hey, When I try to mount my Btrfs filesystem it fails and this shows up on dmesg: device fsid 97727502-a678-4ed1-a96c-409b852d76bf devid 1 transid 135714 /dev/sda4 btrfs: enabling auto recoveryparent transid verify failed on

Re: [EXTERNAL] Re: kernel BUG at fs/btrfs/extent_io.c:3982!

2012-05-03 Thread Jim Schutt
On 05/03/2012 08:53 AM, Josef Bacik wrote: On Thu, May 03, 2012 at 08:43:32AM -0600, Jim Schutt wrote: On 05/01/2012 10:41 AM, Jim Schutt wrote: On 05/01/2012 10:00 AM, Josef Bacik wrote: On Wed, Apr 11, 2012 at 02:24:30PM -0600, Jim Schutt wrote: On 04/11/2012 01:09 PM, Josef Bacik wrote:

Re: [EXTERNAL] Re: kernel BUG at fs/btrfs/extent_io.c:3982!

2012-05-03 Thread Josef Bacik
On Thu, May 03, 2012 at 09:46:15AM -0600, Jim Schutt wrote: On 05/03/2012 08:53 AM, Josef Bacik wrote: On Thu, May 03, 2012 at 08:43:32AM -0600, Jim Schutt wrote: On 05/01/2012 10:41 AM, Jim Schutt wrote: On 05/01/2012 10:00 AM, Josef Bacik wrote: On Wed, Apr 11, 2012 at 02:24:30PM -0600, Jim

Re: Ceph on btrfs 3.4rc

2012-05-03 Thread Josh Durgin
On Thu, 3 May 2012 11:20:53 -0400, Josef Bacik jo...@redhat.com wrote: On Thu, May 03, 2012 at 08:17:43AM -0700, Josh Durgin wrote: On Thu, 3 May 2012 10:13:55 -0400, Josef Bacik jo...@redhat.com wrote: On Fri, Apr 27, 2012 at 01:02:08PM +0200, Christian Brunner wrote: Am 24. April 2012

Re: Ceph on btrfs 3.4rc

2012-05-03 Thread Josh Durgin
On Thu, 3 May 2012 10:13:55 -0400, Josef Bacik jo...@redhat.com wrote: On Fri, Apr 27, 2012 at 01:02:08PM +0200, Christian Brunner wrote: Am 24. April 2012 18:26 schrieb Sage Weil s...@newdream.net: On Tue, 24 Apr 2012, Josef Bacik wrote: On Fri, Apr 20, 2012 at 05:09:34PM +0200, Christian

Re: [PATCH] Btrfs: fix crash in scrub repair code when device is missing

2012-05-03 Thread Marco L. Crociani
On Thu, May 3, 2012 at 11:31 AM, Stefan Behrens sbehr...@giantdisaster.de wrote: Fix that when scrub tries to repair an I/O or checksum error and one of the devices containing the mirror is missing, it crashes in bio_add_page because the bdev is a NULL pointer for missing devices.

Re: Ceph on btrfs 3.4rc

2012-05-03 Thread Josef Bacik
On Thu, May 03, 2012 at 09:38:27AM -0700, Josh Durgin wrote: On Thu, 3 May 2012 11:20:53 -0400, Josef Bacik jo...@redhat.com wrote: On Thu, May 03, 2012 at 08:17:43AM -0700, Josh Durgin wrote: On Thu, 3 May 2012 10:13:55 -0400, Josef Bacik jo...@redhat.com wrote: On Fri, Apr 27, 2012 at

Re: Hot data Tracking

2012-05-03 Thread Hubert Kario
On Thursday 03 of May 2012 15:09:25 Waxhead wrote: David Sterba wrote: On Sat, Feb 11, 2012 at 05:49:41AM +0100, Timo Witte wrote: What happened to the hot data tracking feature in btrfs? There are a lot of old patches from aug 2010, but it looks like the feature has been completly

Re: [PATCH 2/3] btrfs: extended inode refs

2012-05-03 Thread Mark Fasheh
On Thu, Apr 12, 2012 at 03:08:35PM +0200, Jan Schmidt wrote: On 05.04.2012 22:09, Mark Fasheh wrote: Teach tree-log.c about extended inode refs. In particular, we have to adjust the behavior of inode ref replay as well as log tree recovery to account for the existence of extended refs.

btrfs scrub BUG: unable to handle kernel NULL pointer dereference

2012-05-03 Thread Mark Murawski
I think I have some failing hard drives, they are disconnected for now. stan {~} root# btrfs filesystem show Label: none uuid: d71404d4-468e-47d5-8f06-3b65fa7776aa Total devices 2 FS bytes used 6.27GB devid1 size 9.31GB used 8.16GB path /dev/sde6 *** Some devices