btrfs loopback problems

2014-07-06 Thread Russell Coker
root@yoyo:/# btrfs fi df / Data, RAID1: total=9.00GiB, used=6.95GiB System, RAID1: total=32.00MiB, used=16.00KiB Metadata, RAID1: total=1.00GiB, used=82.95MiB root@yoyo:/# df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 273G 15G 257G 6% / I have a Xen server that has

Re: Is btrfs related to OOM death problems on my 8GB server with both 3.15.1 and 3.14?

2014-07-06 Thread Marc MERLIN
On Sat, Jul 05, 2014 at 07:43:18AM -0700, Marc MERLIN wrote: On Sat, Jul 05, 2014 at 09:47:09AM -0400, Andrew E. Mileski wrote: On 2014-07-03 9:19 PM, Marc MERLIN wrote: I upgraded my server from 3.14 to 3.15.1 last week, and since then it's been running out of memory and deadlocking

[PATCH] Btrfs: reduce size of struct extent_state

2014-07-06 Thread Filipe Manana
The tree field of struct extent_state was only used to figure out if an extent state was connected to an inode's io tree or not. For this we can just use the rb_node field itself. On a x86_64 system with this change the sizeof(struct extent_state) is reduced from 96 bytes down to 88 bytes,

Re: [PATCH v4] btrfs-progs: Add minimum device size check

2014-07-06 Thread Qu Wenruo
Original Message Subject: Re: [PATCH v4] btrfs-progs: Add minimum device size check From: David Sterba dste...@suse.cz To: dste...@suse.cz, Qu Wenruo quwen...@cn.fujitsu.com, linux-btrfs@vger.kernel.org Date: 2014年07月04日 23:21 On Fri, Jul 04, 2014 at 04:17:46PM +0200, David

Re: [PATCH 2/2] btrfs-progs: Add mount point check for 'btrfs fi df' command

2014-07-06 Thread Qu Wenruo
Original Message Subject: Re: [PATCH 2/2] btrfs-progs: Add mount point check for 'btrfs fi df' command From: David Sterba dste...@suse.cz To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年07月04日 21:52 On Fri, Jul 04, 2014 at 04:38:49PM +0800, Qu Wenruo wrote: 'btrfs fi df'

Re: [RFC PATCH] Revert btrfs: allow mounting btrfs subvolumes with different ro/rw options

2014-07-06 Thread Qu Wenruo
Original Message Subject: Re: [RFC PATCH] Revert btrfs: allow mounting btrfs subvolumes with different ro/rw options From: Goffredo Baroncelli kreij...@inwind.it To: Qu Wenruo quwen...@cn.fujitsu.com, linux-btrfs@vger.kernel.org Date: 2014年07月05日 01:41 Hi Qu On 07/04/2014

[PATCH v2] btrfs-progs: add ask_user confirmation for btrfstune clear seeding flag

2014-07-06 Thread Gui Hecheng
If we do the following: # mkfs.btrfs -f dev # mount dev mnt # dd if=/dev/urandom of=mnt/data bs=1M count=100 # umount dev # btrfstune -S 1 dev --- make seeding device # mount dev mnt # btrfs dev add -f dev2 mnt # umount dev

[PATCH v2] btrfs-progs: update manpage with new option -f for btrfstune

2014-07-06 Thread Gui Hecheng
The new option -f will force to do dangerous changes. e.g. clear the seeding flag. --- changelog v1-v2: use -f instead of -y --- Documentation/btrfstune.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfstune.txt b/Documentation/btrfstune.txt

[PATCH v2] btrfs-progs: add mount status check for btrfs-image

2014-07-06 Thread Gui Hecheng
When btrfs-image run on a mounted filesystem, the undergoing fs operations may change what you have imaged a while ago. In this case, give a warning to remind the user that he may not get a consistent image he wants. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com --- changelog:

Re: qgroup destroy / assign

2014-07-06 Thread Wang Shilong
Hi Kevin, On 07/05/2014 05:10 AM, Kevin Brandstatter wrote: how are qgroups accounted for? Are they specifially tied to one subvolume on creation? Qgroup implementation is aslo a little confusing for me at first:-) . Yes, a qgroup is created automatically tied to one subvolume on creation

Re: [PATCH 1/2] btrfs: fix null pointer dereference in clone_fs_devices when name is null

2014-07-06 Thread Miao Xie
On Fri, 4 Jul 2014 19:24:44 +0800, Anand Jain wrote: (now used correct email id for Chris) On 04/07/2014 19:21, Anand Jain wrote: Miao, Chris, I appreciate your review comments, Miao. I am sorry for the delay, was stuck on this issue for a long time. more below. On 02/07/2014 10:38,

Re: btrfs loopback problems

2014-07-06 Thread Qu Wenruo
Original Message Subject: btrfs loopback problems From: Russell Coker russ...@coker.com.au To: linux-btrfs@vger.kernel.org Date: 2014年07月06日 18:09 root@yoyo:/# btrfs fi df / Data, RAID1: total=9.00GiB, used=6.95GiB System, RAID1: total=32.00MiB, used=16.00KiB Metadata, RAID1:

Re: [PATCH V2 7/9] btrfs: fix null pointer dereference in clone_fs_devices when name is null

2014-07-06 Thread Anand Jain
On 03/07/2014 18:22, Miao Xie wrote: From: Anand Jain anand.j...@oracle.com when one of the device path is missing btrfs_device name is null. So this patch will check for that. stack: BUG: unable to handle kernel NULL pointer dereference at 0010 IP: [812e18c0]

Re: [PATCH V2 7/9] btrfs: fix null pointer dereference in clone_fs_devices when name is null

2014-07-06 Thread Miao Xie
On Mon, 7 Jul 2014 12:04:09 +0800, Anand Jain wrote: when one of the device path is missing btrfs_device name is null. So this patch will check for that. stack: BUG: unable to handle kernel NULL pointer dereference at 0010 IP: [812e18c0] strlen+0x0/0x30