Re: Moving top level to a subvolume

2012-06-13 Thread C Anthony Risinger
On Fri, Jun 8, 2012 at 2:40 PM, Arne Jansen sensi...@gmx.net wrote: On 06/08/2012 09:24 PM, Matthew Hawn wrote: I just converted my root filesystem to btrfs with btrfs-convert.  However, since I am running Ubuntu, I would like to have the same subvolume structure as a default install,. How

Re: Moving top level to a subvolume

2012-06-13 Thread Arne Jansen
On 13.06.2012 09:04, C Anthony Risinger wrote: On Fri, Jun 8, 2012 at 2:40 PM, Arne Jansen sensi...@gmx.net wrote: On 06/08/2012 09:24 PM, Matthew Hawn wrote: I just converted my root filesystem to btrfs with btrfs-convert. However, since I am running Ubuntu, I would like to have the same

Re: Moving top level to a subvolume

2012-06-13 Thread Duncan
Fajar A. Nugraha posted on Wed, 13 Jun 2012 08:49:47 +0700 as excerpted: As for lose their filesystems, are there recent ones that uses one of the three distros above, and is purely btrfs fault? The ones I can remember (from the post to this list) were broken on earlier kernels, or caused by

Re: Btrfs and data nocow per inode basis

2012-06-13 Thread Liu Bo
On 06/13/2012 05:10 AM, Ted Ts'o wrote: On Tue, Jun 12, 2012 at 04:44:23PM -0400, Chris Mason wrote: On Tue, Jun 12, 2012 at 01:15:27PM -0600, Ted Ts'o wrote: It appears the NOCOW_FL flag is currently a no-op in the 3.2 kernel? It's not a noop, but it is only setting the NODATACOW flag. It

[PATCH] E2fsprogs: add missing usage for No_COW

2012-06-13 Thread Liu Bo
Add the missing usage for No_COW since we've supported No_COW flag. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- misc/chattr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc/chattr.c b/misc/chattr.c index 141ea6e..24254cc 100644 --- a/misc/chattr.c +++

Re: [PATCH] E2fsprogs: add missing usage for No_COW

2012-06-13 Thread Roman Mamedov
On Wed, 13 Jun 2012 15:47:13 +0800 Liu Bo liubo2...@cn.fujitsu.com wrote: Add the missing usage for No_COW since we've supported No_COW flag. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- misc/chattr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

RE: Bug in btrfs-debug-tree for two or more devices.

2012-06-13 Thread Santosh Hosamani
-Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Hugo Mills Sent: Wednesday, June 13, 2012 1:37 AM To: Santosh Hosamani Cc: linux-btrfs@vger.kernel.org Subject: Re: Bug in btrfs-debug-tree for two or more devices. On

RE: Bug in btrfs-debug-tree for two or more devices.

2012-06-13 Thread Santosh Hosamani
-Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Randy Barlow Sent: Tuesday, June 12, 2012 8:28 PM To: linux-btrfs@vger.kernel.org Subject: Re: Bug in btrfs-debug-tree for two or more devices. On Tuesday, June 12, 2012

[PATCH v2] E2fsprogs: add missing usage for No_COW

2012-06-13 Thread Liu Bo
Add the missing usage for No_COW since we've supported No_COW flag. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- v1-v2: sort options alphabetically, thanks to Roman Mamedov. misc/chattr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc/chattr.c

Re: Moving top level to a subvolume

2012-06-13 Thread Fajar A. Nugraha
On Wed, Jun 13, 2012 at 2:23 PM, Duncan 1i5t5.dun...@cox.net wrote: Fajar A. Nugraha posted on Wed, 13 Jun 2012 08:49:47 +0700 as excerpted: As for lose their filesystems, are there recent ones that uses one of the three distros above, and is purely btrfs fault? The ones I can remember (from

Re: Moving top level to a subvolume

2012-06-13 Thread C Anthony Risinger
On Wed, Jun 13, 2012 at 2:21 AM, Arne Jansen sensi...@gmx.net wrote: On 13.06.2012 09:04, C Anthony Risinger wrote: a) have a lot of data b) need to do this via script c) ??? ... because in a), data will *copied* the slow way, and in b) you leave a bunch of junk laying around in the old

Re: Moving top level to a subvolume

2012-06-13 Thread Fajar A. Nugraha
On Wed, Jun 13, 2012 at 4:44 PM, C Anthony Risinger anth...@xtfx.me wrote: On Wed, Jun 13, 2012 at 2:21 AM, Arne Jansen sensi...@gmx.net wrote: On 13.06.2012 09:04, C Anthony Risinger wrote: ... because in a), data will *copied* the slow way What I don't understand is why you think data will

[PATCH 0/4 v2][RFC] apply rwlock for extent state

2012-06-13 Thread Liu Bo
This patchset is against one of project ideas, RBtree lock contention: Btrfs uses a number of rbtrees to index in-memory data structures. Some of these are dominated by reads, and the lock contention from searching them is showing up in profiles. We need to look into an RCU and sequence counter

[PATCH 2/4] Btrfs: merge adjacent states as much as possible

2012-06-13 Thread Liu Bo
In order to reduce write locks, we do merge_state as much as much as possible. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- fs/btrfs/extent_io.c | 47 +++ 1 files changed, 27 insertions(+), 20 deletions(-) diff --git a/fs/btrfs/extent_io.c

[PATCH 1/4] Btrfs: use radix tree for checksum

2012-06-13 Thread Liu Bo
We used to issue a checksum to an extent state of 4K range for read endio, but now we want to use larger range for performance optimization, so instead we create a radix tree for checksum, where an item stands for checksum of 4K data. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com ---

[PATCH 3/4] Btrfs: use large extent range for read and its endio

2012-06-13 Thread Liu Bo
we use larger extent state range for both readpages and read endio, so that we can lock or unlock less and avoid most of split ops, then we'll reduce write locks taken at endio time. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- fs/btrfs/extent_io.c | 201

[PATCH 4/4] Btrfs: apply rwlock for extent state

2012-06-13 Thread Liu Bo
We used to protect both extent state tree and an individual state's state by tree-lock, but this can be an obstacle of lockless read. So we seperate them here: o tree-lock protects the tree o state-lock protects the state. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com --- fs/btrfs/extent_io.c

Re: Massive metadata size increase after upgrade from 3.2.18 to 3.4.1

2012-06-13 Thread Anand Jain
Did you try balance ? (also there is a balance option to pick the least utilized metadata chunks). in long run when you have the understanding of your files and sizes tuning using mount option metadata_ratio might help. but not sure how the metadata expanded to 84.38G was there any

Re: [PATCH 1/2] Btrfs: use rcu to protect device-name V2

2012-06-13 Thread Stefan Behrens
On Wed, 13 Jun 2012 00:35:26 +0200, David Sterba wrote: On Tue, Jun 12, 2012 at 03:50:41PM -0400, Josef Bacik wrote: +++ b/fs/btrfs/check-integrity.c @@ -93,6 +93,7 @@ #include print-tree.h #include locking.h #include check-integrity.h +#include rcu-string.h #define

Computing size of snapshots approximatly

2012-06-13 Thread Jan-Hendrik Palic
Hi, we using on a server several lvm volumes with btrfs. We want to use nightly build snapshots for some days as an alternative to backups. Now I want to get the size of the snapshots in detail. Therefore I played with btrfs subvolume find-new $snapshot $gen-id. And I know, that this is

Re: [PATCH 1/2] Btrfs: use rcu to protect device-name V2

2012-06-13 Thread Josef Bacik
On Wed, Jun 13, 2012 at 12:35:26AM +0200, David Sterba wrote: On Tue, Jun 12, 2012 at 03:50:41PM -0400, Josef Bacik wrote: +++ b/fs/btrfs/check-integrity.c @@ -93,6 +93,7 @@ #include print-tree.h #include locking.h #include check-integrity.h +#include rcu-string.h #define

Re: Computing size of snapshots approximatly

2012-06-13 Thread Hugo Mills
On Wed, Jun 13, 2012 at 02:15:33PM +0200, Jan-Hendrik Palic wrote: Hi, we using on a server several lvm volumes with btrfs. We want to use nightly build snapshots for some days as an alternative to backups. Now I want to get the size of the snapshots in detail. There are basically two

Re: [PATCH 1/2] Btrfs: use rcu to protect device-name V2

2012-06-13 Thread Stefan Behrens
On Wed, 13 Jun 2012 09:14:27 -0400, Josef Bacik wrote: On Wed, Jun 13, 2012 at 12:35:26AM +0200, David Sterba wrote: On Tue, Jun 12, 2012 at 03:50:41PM -0400, Josef Bacik wrote: @@ -4694,8 +4716,11 @@ int btrfs_init_dev_stats(struct btrfs_fs_info *fs_info) key.offset =

Re: [PATCH 1/2] Btrfs: use rcu to protect device-name V2

2012-06-13 Thread Josef Bacik
On Wed, Jun 13, 2012 at 03:49:07PM +0200, Stefan Behrens wrote: On Wed, 13 Jun 2012 09:14:27 -0400, Josef Bacik wrote: On Wed, Jun 13, 2012 at 12:35:26AM +0200, David Sterba wrote: On Tue, Jun 12, 2012 at 03:50:41PM -0400, Josef Bacik wrote: @@ -4694,8 +4716,11 @@ int

Re: Computing size of snapshots approximatly

2012-06-13 Thread Jan-Hendrik Palic
Hi Hugo, hi all, On 13.06.2012 15:27, Hugo Mills wrote: On Wed, Jun 13, 2012 at 02:15:33PM +0200, Jan-Hendrik Palic wrote: Hi, we using on a server several lvm volumes with btrfs. We want to use nightly build snapshots for some days as an alternative to backups. Now I want to get the size of

[PATCH] Btrfs: use rcu to protect device-name V3

2012-06-13 Thread Josef Bacik
Al pointed out that we can just toss out the old name on a device and add a new one arbitrarily, so anybody who uses device-name in printk could possibly use free'd memory. Instead of adding locking around all of this he suggested doing it with RCU, so I've introduced a struct rcu_string that

Re: ceph-on-btrfs inline-cow regression fix for 3.4.3

2012-06-13 Thread Chris Mason
On Tue, Jun 12, 2012 at 09:46:26PM -0600, Alexandre Oliva wrote: Hi, Greg, There's a btrfs regression in 3.4 that's causing a lot of grief to ceph-on-btrfs users like myself. This small and nice patch cures it. It's in Linus' master already. I've been running it on top of 3.4.2, and it

Re: [PATCH 1/4] Btrfs: use radix tree for checksum

2012-06-13 Thread Zach Brown
int set_state_private(struct extent_io_tree *tree, u64 start, u64 private) { [...] + ret = radix_tree_insert(tree-csum, (unsigned long)start, + (void *)((unsigned long)private 1)); Will this fail for 64bit files on 32bit hosts? + BUG_ON(ret);

Re: Moving top level to a subvolume

2012-06-13 Thread Goffredo Baroncelli
On 06/13/2012 09:21 AM, Arne Jansen wrote: On 13.06.2012 09:04, C Anthony Risinger wrote: On Fri, Jun 8, 2012 at 2:40 PM, Arne Jansen sensi...@gmx.net wrote: On 06/08/2012 09:24 PM, Matthew Hawn wrote: I just converted my root filesystem to btrfs with btrfs-convert. However, since I am

Re: Leaving Oracle

2012-06-13 Thread Chris Mason
On Sun, Jun 10, 2012 at 12:01:28PM -0600, David Pottage wrote: On 07/06/12 02:04, Chris Mason wrote: Hello everyone, Oracle has been a fantastic place to work, and I really appreciate their support for my projects. But, I've decided to take a new position at Fusion-io. I will start

Re: KVM on top of BTRFS

2012-06-13 Thread Ernst Sjöstrand
Hi, you can't beat the benchmarks that Serge Hallyn did, really thorough! http://s3hh.wordpress.com/2012/05/02/first-round-of-kvm-performance-tests/ Regards //Ernst 2012/6/12 steamraven steamra...@yahoo.com: Seems a little unfair on btrfs to just to look at absolutes in this context. Prior

Re: KVM on top of BTRFS

2012-06-13 Thread steamraven
Ernst Sjöstrand ernstp at gmail.com writes: Hi, you can't beat the benchmarks that Serge Hallyn did, really thorough! http://s3hh.wordpress.com/2012/05/02/first-round-of-kvm-performance-tests/ They do seem very thorough. Unfortunately, they are kvm on top of ext4 and he was mainly

Re: [PATCH 1/4] Btrfs: use radix tree for checksum

2012-06-13 Thread Liu Bo
On 06/14/2012 12:07 AM, Zach Brown wrote: int set_state_private(struct extent_io_tree *tree, u64 start, u64 private) { [...] +ret = radix_tree_insert(tree-csum, (unsigned long)start, + (void *)((unsigned long)private 1)); Will this fail for 64bit files on

Re: [PATCH] E2fsprogs: add missing usage for No_COW

2012-06-13 Thread Ted Ts'o
On Wed, Jun 13, 2012 at 03:47:13PM +0800, Liu Bo wrote: Add the missing usage for No_COW since we've supported No_COW flag. Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com Applied, thanks. - Ted -- To unsubscribe from this list: send the line

Re: [PATCH 2/2] Btrfs: implement -show_devname V2

2012-06-13 Thread Miao Xie
On tue, 12 Jun 2012 15:50:42 -0400, Josef Bacik wrote: Because btrfs can remove the device that was mounted we need to have a -show_devname so that in this case we can print out some other device in the file system to /proc/mount. So if there are multiple devices in a btrfs file system

Re: btrfs: filenames collide with snapshot/subvolume names

2012-06-13 Thread Ben Hutchings
Γιώργος (Giorgos?) reports: Namely, being inside a snapshot directory, I can't create a file/directory with the name of the snapshot directory. For example, inside /mnt/aSnap, I can't create a file named 'aSnap', so I'm filling this bug report. It seems that the snapshot directory is