[PATCH v2 3/9] Btrfs-progs: introduces '-c' option to print the ID of the child qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduces '-c' option to print the ID of the child qgroups. You may use it like: btrfs qgroup show -c For Example: qgroupid(2/0) / \ / \ / \ qgroupid(1/0)

[PATCH v2 9/9] Btrfs-progs: enhance btrfs qgroup to print the result as a table

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduce '-t' option which can help you print the result as a table. You can use it like: btrfs qgroup show -t However, to table the result better, we make '-p' and '-c' not present at the same time.If you still want to show both of them at the same time,

[PATCH v2 6/9] Btrfs-progs: list all qgroups impact given path(include ancestral qgroups)

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduces '-F' option which can help you filter the qgroups by the path name, you may use it like: btrfs qgroup show -F For example: qgroupid(2/0) / \ / \

[PATCH v2 4/9] Btrfs-progs: introduce '-l' option to print max referenced size of qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduces '-l' option to print max referenced size of qgroups. You may use it like: btrfs qgroup show -l Signed-off-by: Wang Shilong Signed-off-by: Miao Xie --- cmds-qgroup.c | 9 +++-- qgroup.c | 7 +++ qgroup.h | 1 + 3 file

[PATCH v2 8/9] Btrfs-progs: enhance btrfs qgroup show to sort qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong You might want to list qgroups in order of some items, such as 'qgroupid', 'rfer' and so on, you can use '--sort'. Now you can sort the qgroups by 'qgroupid', 'rfer','excl','max_rfer' and 'max_excl'. For example: If you want to list qgroups in order of 'qgroupid'. You

[PATCH v2 7/9] Btrfs-progs: list all qgroups impact given path(exclude ancestral qgroups)

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduces '-f' option which can help you filter the qgroups by the path name, you may use it like: btrfs qgroup show -f For example: qgroupid(2/0) / \ / \

[PATCH v2 1/9] Btrfs-progs: restructure show_qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong The current show_qgroups() just shows a little information, and it is hard to add some functions which the users need in the future, so i restructure it, make it easy to add new functions. In order to improve the scalability of show_qgroups(), i add some important structures:

[PATCH v2 2/9] Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduces '-p' option to print the ID of the parent qgroups. You may use it like: btrfs qgroup show -p For Example: qgroupid(2/0) / \ / \ / \ qgroupid(1/0)

[PATCH v2 5/9] Btrfs-progs: introduce '-e' option to print max exclusive size of qgroups

2013-09-22 Thread Wang Shilong
From: Wang Shilong This patch introduce '-e' option to print max exclusive size of qgroups. You may use it like this: btrfs qgroup -e Signed-off-by: Wang Shilong Signed-off-by: Miao Xie --- cmds-qgroup.c | 9 +++-- qgroup.c | 8 qgroup.h | 1 + 3 files

[PATCH v2 0/9] enhance btrfs qgroup show command

2013-09-22 Thread Wang Shilong
The patchset enhanced btrfs qgroup show command. Firstly, we restructure show_qgroups, make it easy to add new features. And then we add '-p' '-c', '-l',and '-e' options to print the parent qgroup id, child qgroup id, max referenced size and max exclusive size of qgroup respectively, add '-F' and

Re: [PATCH 0/9] enhance btrfs qgroup show command

2013-09-22 Thread Wang Shilong
On 09/23/2013 09:53 AM, Dusty Mabe wrote: Hi Wang, Thank you! There is one other thing I have noticed while playing around with quota and qgroups. If I delete subvolumes I can manage to get some of the qgroup information to be reported as a negative number. If you are interested check out my ste

Re: Deleting a subvolume causes RO remount

2013-09-22 Thread Frank Holton
Hello, The error shown in your log seems to be a regression related to subvolumes and a new uuid tree. See here http://www.spinics.net/lists/linux-btrfs/msg27712.html A patch that should fix the subvolume errors is here http://www.spinics.net/lists/linux-btrfs/msg27717.html You can try that patc

Re: [PATCH 0/9] enhance btrfs qgroup show command

2013-09-22 Thread Dusty Mabe
Hi Wang, Thank you! There is one other thing I have noticed while playing around with quota and qgroups. If I delete subvolumes I can manage to get some of the qgroup information to be reported as a negative number. If you are interested check out my steps at http://dustymabe.com/2013/09/22/btrfs-

Re: [PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-22 Thread Miao Xie
On sun, 22 Sep 2013 21:55:53 +0100, Filipe David Borba Manana wrote: > Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't > wait for delayed work to finish before returning success to the > caller. This change fixes this, ensuring that there's no data loss > if a power failure ha

Re: [PATCH 0/9] enhance btrfs qgroup show command

2013-09-22 Thread Wang Shilong
On 09/22/2013 11:14 PM, Dusty Mabe wrote: > Miao Xie cn.fujitsu.com> writes: > >> The patchset enhanced btrfs qgroup show command. >> >> Firstly, we restructure show_qgroups, make it easy to add new features. >> >> And then we add '-p' '-c', '-l',and '-e' options to print the parent >> qgroup id,

btrfs: qgroup scan failed with -12

2013-09-22 Thread Tomasz Chmielewski
Not sure if it's anything interesting - I had the following entry in dmesg a few days ago, on a server with 32 GB RAM. The system is still working fine. [1878432.675210] btrfs-qgroup-re: page allocation failure: order:5, mode:0x104050 [1878432.675319] CPU: 5 PID: 22251 Comm: btrfs-qgroup-re Not

Deleting a subvolume causes RO remount

2013-09-22 Thread Rain Maker
Hello list, I'm still busy trying to figure out how to get VMs running without corruption (see http://www.spinics.net/lists/linux-btrfs/msg27300.html) and in the process of this, I tried to remove the "@vmware" subvolume I've made. This seems to trigger some bug, as dmesg is showing an OOPS (2 I

[PATCH] Btrfs: fix sync fs to actually wait for all data to be persisted

2013-09-22 Thread Filipe David Borba Manana
Currently the fs sync function (super.c:btrfs_sync_fs()) doesn't wait for delayed work to finish before returning success to the caller. This change fixes this, ensuring that there's no data loss if a power failure happens right after fs sync returns success to the caller and before the next commit

[PATCH] Btrfs: fix tracking of orphan inode count

2013-09-22 Thread Filipe David Borba Manana
In inode.c:btrfs_orphan_add() if we failed to insert the orphan item, we would return without decrementing the orphan count that we just incremented before attempting the insertion, leaving the orphan inode count wrong. In inode.c:btrfs_orphan_del(), we were decrementing the inode orphan count if

[GIT PULL] Btrfs

2013-09-22 Thread Chris Mason
Hi Linus, Please pull my for-linus branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus These are mostly bug fixes and a two small performance fixes. The most important of the bunch are Josef's fix for a snapshotting regression and Mark's update to fix compile p

Re: Issue building a file based rootfs image with mkfs.btrfs

2013-09-22 Thread Saul Wold
On 09/19/2013 11:19 AM, Saul Wold wrote: Hi there, I am attempting to build a rootfs image from an existing rootfs directory tree. I am using the 0.20 @ 194aa4a of Chris's git repo. The couple problem I saw was that the target image file needed to exist, although I think I can patch that then

Re: [PATCH 0/9] enhance btrfs qgroup show command

2013-09-22 Thread Dusty Mabe
Miao Xie cn.fujitsu.com> writes: > > The patchset enhanced btrfs qgroup show command. > > Firstly, we restructure show_qgroups, make it easy to add new features. > > And then we add '-p' '-c', '-l',and '-e' options to print the parent > qgroup id, child qgroup id, max referenced size and max e

[PATCH] btrfs-progs: verify_space_cache: Fix memory leak.

2013-09-22 Thread chandan
Free btrfs_path structure before returning due to failure of calls to btrfs_search_slot() or btrfs_next_leaf() functions. Signed-off-by: chandan --- cmds-check.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index e08b79d..c947156 100644

Re: [REGRESSION] 3.12-rc1: Trying to create snapshot corrupted filesystem

2013-09-22 Thread Ahmet Inan
On Sat, Sep 21, 2013 at 1:20 PM, Ahmet Inan wrote: >> You will want the patch I just sent, >> >> Btrfs: create the uuid tree on remount rw >> >> and that should fix the snapshot problems. Thanks, > > thanks Josef - you can close this bug: > > https://bugzilla.kernel.org/show_bug.cgi?id=61301 > >