[ANNOUNCE] xfstests: master branch updated to 10fd79a

2014-05-13 Thread Dave Chinner
Hi folks, The xfstests repository at git://oss.sgi.com/xfs/cmds/xfstests has just been updated. Patches often get missed, so please check if your outstanding patches were in this update. If they have not been in this update, please resubmit them to x...@oss.sgi.com so they can be picked up in the

Re: -musage=0 means always reporting relocation

2014-05-13 Thread Russell Coker
On Sun, 11 May 2014 16:11:56 Brendan Hide wrote: On 2014/05/11 11:52 AM, Russell Coker wrote: On Sun, 11 May 2014, Russell Coker russ...@coker.com.au wrote: Below is the output of running a balance a few times on a 120G SSD. Sorry forgot to mention that's kernel 3.14.1 Debian package.

[PATCH v2] btrfs: replace simple_strtoull() with kstrtoull()

2014-05-13 Thread Zhang Zhen
use the newer and more pleasant kstrtoull() to replace simple_strtoull(), because simple_strtoull() is marked for obsoletion. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ioctl.c

[PATCH] Btrfs-progs: save us an unnecessary ioctl call

2014-05-13 Thread Wang Shilong
Btrfs device id start from 1, not 0. Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 560c557..d480353 100644 --- a/utils.c +++ b/utils.c @@ -1765,7 +1765,7 @@ int get_fs_info(char

[PATCH] Btrfs: set right total device count for seeding support

2014-05-13 Thread Wang Shilong
Seeding device support allows us to create a new filesystem based on existed filesystem. However newly created filesystem's @total_devices should include seed devices. This patch fix the following problem: # mkfs.btrfs -f /dev/sdb # btrfstune -S 1 /dev/sdb # mount /dev/sdb /mnt # btrfs

Re: bug adding device to seed device, btrfs fi show fails

2014-05-13 Thread Wang Shilong
Hi Anand, On 05/12/2014 10:00 AM, Anand Jain wrote: This patch posted a long time back should fix it. http://permalink.gmane.org/gmane.comp.file-systems.btrfs/33276 I sent a patch to address another problem, plus your patch should can fix the problem.

Re: [PATCH 2/3 RFC] btrfs: total_devices should count replacing devices

2014-05-13 Thread Wang Shilong
Hello Anand, I agree we can export @total_devices to fix 'btrfs file show' problem. This patch addressed two problem, it is better to split it into two patches. Could you please resend the patch, at least we should fix 'btrfs file show' problem firstly. Thanks, Wang On 03/07/2014 11:48 PM,

Re: [PATCH] Btrfs-progs: save us an unnecessary ioctl call

2014-05-13 Thread Stefan Behrens
On Tue, 13 May 2014 17:05:05 +0800, Wang Shilong wrote: Btrfs device id start from 1, not 0. Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 560c557..d480353 100644 ---

Re: [PATCH] Btrfs-progs: save us an unnecessary ioctl call

2014-05-13 Thread Wang Shilong
On 05/13/2014 06:48 PM, Stefan Behrens wrote: On Tue, 13 May 2014 17:05:05 +0800, Wang Shilong wrote: Btrfs device id start from 1, not 0. Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c

Re: Fwd: [suggestion] Add verbose notification about inode-cache rebuild to kernel log

2014-05-13 Thread David Sterba
On Mon, May 12, 2014 at 08:18:04PM +0200, Goffredo Baroncelli wrote: To be clear, I would like to avoid inode_cache on 64bit machine. In order to avoid the risk to exhaust the inode on 32bit and to be backward compatible with what already exists, we could add a flag to mkfs.btrfs to be only

Re: -musage=0 means always reporting relocation

2014-05-13 Thread Duncan
Russell Coker posted on Tue, 13 May 2014 17:57:00 +1000 as excerpted: The pathological case is where you have a chunk that is 1% full and *every* other in-use chunk on the device is 100% full. In that situation, a balance will simply move that data into a new chunk (which will only ever reach

[PATCH] Btrfs: send, fix incorrect ref access when using extrefs

2014-05-13 Thread Filipe David Borba Manana
When running send, if an inode only has extended reference items associated to it and no regular references, send.c:get_first_ref() was incorrectly assuming the reference it found was of type BTRFS_INODE_REF_KEY due to use of the wrong key variable. This caused weird behaviour when using the found

[PATCH] xfstests: btrfs, add regression test for send with extrefs

2014-05-13 Thread Filipe David Borba Manana
Regression for btrfs send when an inode only has extended references associated to it (no regular references present). This used to cause incorrect access to a b+tree leaf, where an extended reference item was accessed as if it were a regular reference item, causing unexpected and unpredictable

Re: 3.15-rc5 btrfs send/receive corruption errors? Does scrub warn of silent corruption?

2014-05-13 Thread Filipe David Manana
On Tue, May 13, 2014 at 12:26 AM, Marc MERLIN m...@merlins.org wrote: On Sat, May 10, 2014 at 04:57:18PM -0700, Marc MERLIN wrote: On Sat, May 10, 2014 at 03:42:49PM -0700, Marc MERLIN wrote: I tried with 3.14.3 and it went further, however it died with legolas:/mnt/btrfs_pool2# btrfs send

[PATCH] mkfs.btrfs: allow UUID specification at mkfs time

2014-05-13 Thread Eric Sandeen
Allow the specification of the filesystem UUID at mkfs time. (Implemented only for mkfs.btrfs, not btrfs-convert). Signed-off-by: Eric Sandeen sand...@redhat.com --- diff --git a/btrfs-convert.c b/btrfs-convert.c index a8b2c51..d62d4f8 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@

lsetxattr error when doing send/receive

2014-05-13 Thread Bernardo Donadio
Hi! I'm trying to do a send/receive of a snapshot between two disks on Fedora 20 with Linux 3.15-rc5 (and also tried with 3.14 and 3.11) and SELinux disabled, and then I'm receiving the following error: [root@darwin /]# btrfs subvolume snapshot -r / @.$(date +%Y-%m-%d-%H%M%S)Create a

Re: lsetxattr error when doing send/receive

2014-05-13 Thread David Brown
On Tue, May 13, 2014 at 08:44:44PM -0300, Bernardo Donadio wrote: Hi! I'm trying to do a send/receive of a snapshot between two disks on Fedora 20 with Linux 3.15-rc5 (and also tried with 3.14 and 3.11) and SELinux disabled, and then I'm receiving the following error: [root@darwin /]# btrfs

Re: [PATCH] Btrfs-progs: save us an unnecessary ioctl call

2014-05-13 Thread Anand Jain
Btrfs device id start from 1, not 0. That was an intentional change. 50275ba btrfs-progs: there is devid 0 when replace is running Signed-off-by: Wang Shilong wangsl.f...@cn.fujitsu.com --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c