Re: Balance RAID10 with odd device count

2012-02-22 Thread Xavier Nicollet
Le 21 February 2012 ? 07:54, Hugo Mills a écrit: Some time ago, I proposed the following scheme: nCmSpP where n is the number of copies (suffixed by C), m is the number of stripes for that data (suffixed by S), and p is the number of parity blocks (suffixed by P). Values of zero are

Re: Balance RAID10 with odd device count

2012-02-22 Thread Hugo Mills
On Wed, Feb 22, 2012 at 11:22:08AM +0100, Hubert Kario wrote: On Wednesday 22 of February 2012 09:56:27 Xavier Nicollet wrote: Le 21 February 2012 ? 07:54, Hugo Mills a écrit: Some time ago, I proposed the following scheme: nCmSpP where n is the number of copies (suffixed by

Re: brtfs on top of dmcrypt with SSD. No corruption iff write cache off?

2012-02-22 Thread Justin Ossevoort
On 15/02/12 17:59, Hugo Mills wrote: It's a temporary location (6 months and counting) while kernel.org is static-pages-only. Hugo. Couldn't btrfs.wiki.kernel.org be made a CNAME for btrfs.ipv5.de for the time being until kernel.org is up and running? Or alternatively all requests

Re: Balance RAID10 with odd device count

2012-02-22 Thread Duncan
Hugo Mills posted on Tue, 21 Feb 2012 01:21:48 + as excerpted: On Mon, Feb 20, 2012 at 08:13:43PM -0500, Tom Cameron wrote: On Mon, Feb 20, 2012 at 8:07 PM, Hugo Mills h...@carfax.org.uk wrote:   However, you can remove any one drive, and your data is fine,   which is what btrfs's

[PATCH] Btrfs-progs: man: fix typo

2012-02-22 Thread Andrea Gelmini
s/eveery/every/ Signed-off-by: Andrea Gelmini andrea.gelm...@gelma.net --- man/btrfs.8.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 8e3b2f5..e2792c9 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -137,7 +137,7 @@ is similar

Re: Is there any data recovery tool?

2012-02-22 Thread Duncan
qasdfgtyuiop posted on Tue, 21 Feb 2012 20:11:06 +0800 as excerpted: I'm using GNU/linux with btrfs root. My filesystem is created with command mkfs.btrfs /dev/sda . Today I'm trying to install Microsoft Windows 7 on /dev/sdb , a 16GB esata ssd. After the installation, I found that Windows

Re: [patch] Btrfs: silence a compiler warning

2012-02-22 Thread David Brown
On Wed, Feb 22, 2012 at 10:30:55AM +0300, Dan Carpenter wrote: Gcc warns that ret can be used uninitialized. It can't actually be used uninitialized because btrfs_num_copies() always returns 1 or more. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git

[weird] High CPU usage caused by btrfs-transaction thread busy doing find_next_zero_bit()

2012-02-22 Thread Jérôme Carretero
Dear devs, My filesystem is super-sluggish since about a week, and perf top tells me that find_next_bit(), find_next_zero_bit() is eating my netbook's CPU. The kernel is 3.3-rc3+188 (g3ec1e88) and I don't use this laptop a lot, so I'm ready to cooperate. In the btrfs-transaction thread, in

Re: [patch] Btrfs: silence a compiler warning

2012-02-22 Thread Dan Carpenter
On Wed, Feb 22, 2012 at 08:29:26AM -0800, David Brown wrote: On Wed, Feb 22, 2012 at 10:30:55AM +0300, Dan Carpenter wrote: Gcc warns that ret can be used uninitialized. It can't actually be used uninitialized because btrfs_num_copies() always returns 1 or more. Signed-off-by: Dan Carpenter

Re: btrfs-convert processing time

2012-02-22 Thread Olivier Bonvalet
So, the btrfs-convert for the smaller drive is done... after near 5 days. Which stats can I give you ? It's a 340GB LVM block device, and btrfs filesystem df /backup/ say that : Data: total=225.97GB, used=181.94GB System: total=32.00MB, used=24.00KB Metadata: total=111.00GB, used=91.56GB If

Btrfs filesystem resize syntax

2012-02-22 Thread Hubert Kario
What happened to the patches to --help and man pages that did explain the multi-device use-case: btrfs filesystem resize [devid:][+/-]newsize[gkm]|max filesystem (the devid: bit is missing) It is explained on the wiki: http://btrfs.ipv5.de/index.php?title=Btrfs(command) but I don't see those

[PATCH] Btrfs: clear the extent uptodate bits during parent transid failures

2012-02-22 Thread Chris Mason
Normally I just toss patches into git, but this one is pretty subtle and I wanted to send it around for extra review. QA at Oracle did a test where they unplugged one drive of a btrfs raid1 mirror for a while and then plugged it back in. The end result is that we have a whole bunch of

[patch v2] Btrfs: silence a compiler warning

2012-02-22 Thread Dan Carpenter
Gcc warns that ret can be used uninitialized. It can't actually be used uninitialized because btrfs_num_copies() always returns 1 or more. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: use the uninitialized_var() macro instead of initializing to 0. diff --git

3.3 restripe between different raid levels

2012-02-22 Thread Alex
[Referring to https://lkml.org/lkml/2012/1/17/381], and perhaps I'm a bit previous, but what are the command sequence to change the raid levels? Wouldn't mind being pointed to git manual if better for you. Well done and thank you to all involved. -- To unsubscribe from this list: send the line

Re: 3.3 restripe between different raid levels

2012-02-22 Thread Alex
Alex alex at bpmit.com writes: The closing square bracket got caught up in the URL: sb https://lkml.org/lkml/2012/1/17/381 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] Btrfs: clear the extent uptodate bits during parent transid failures

2012-02-22 Thread Liu Bo
On 02/23/2012 01:43 AM, Chris Mason wrote: Normally I just toss patches into git, but this one is pretty subtle and I wanted to send it around for extra review. QA at Oracle did a test where they unplugged one drive of a btrfs raid1 mirror for a while and then plugged it back in. The end

[PATCH] Btrfs: fix error handling of btrfs_iget()

2012-02-22 Thread Tsutomu Itoh
btrfs_iget() never return NULL. So, NULL check is unnecessary. Signed-off-by: Tsutomu Itoh t-i...@jp.fujitsu.com --- fs/btrfs/relocation.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 8c1aae2..be1caf4 100644 ---

[PATCH 1/3] Btrfs-progs, btrfs-map-logical: Fix typo in usage

2012-02-22 Thread Miao Xie
The right option is 'o' not 'c'. And this tool is used for the block devices on which there is a btrfs file system, so change mount_point to device. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- btrfs-map-logical.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] Btrfs-progs, btrfs-corrupt-block: fix the wrong usage

2012-02-22 Thread Miao Xie
The old usage is a copy of btrfs-map-logical, it's wrong, fix it. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- This patch is against dangerdonteveruse branch. --- btrfs-corrupt-block.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/btrfs-corrupt-block.c

[PATCH 3/3] Btrfs-progs: fix btrfsck's snapshot wrong unresolved refs

2012-02-22 Thread Miao Xie
If the fs/file tree is not the parent of the snapshot, it is reasonable that we can not find the relative reference and back reference. But btrfsck doesn't consider this case, and reports unresolved refs message, it's wrong, fix it. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- btrfsck.c |