Re: various problems converting to RAID1

2012-12-06 Thread Piotr Pawłow
When I try btrfsck in repair mode, it fails to fix the corruption (log below). Is there any other version of btrfsck besides the one at git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git that I could try? (gdb) run Starting program: /home/pp/btrfs-progs/btrfsck --repair /dev/m

[PATCH 0/9] enhance btrfs qgroup show command

2012-12-06 Thread Miao Xie
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

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

2012-12-06 Thread Miao Xie
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 2/9] Btrfs-progs: introduces '-p' option to print the ID of the parent qgroups

2012-12-06 Thread Miao Xie
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 4/9] Btrfs-progs: introduce '-l' option to print max referenced size of qgroups

2012-12-06 Thread Miao Xie
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 5/9] Btrfs-progs: introduce '-e' option to print max exclusive size of qgroups

2012-12-06 Thread Miao Xie
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 3/9] Btrfs-progs: introduces '-c' option to print the ID of the child qgroups

2012-12-06 Thread Miao Xie
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 6/9] Btrfs-progs: list all qgroups impact given path(include ancestral qgroups)

2012-12-06 Thread Miao Xie
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 7/9] Btrfs-progs: list all qgroups impact given path(exclude ancestral qgroups)

2012-12-06 Thread Miao Xie
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 8/9] Btrfs-progs: enhance btrfs qgroup show to sort qgroups

2012-12-06 Thread Miao Xie
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 9/9] Btrfs-progs: enhance btrfs qgroup to print the result as a table

2012-12-06 Thread Miao Xie
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,

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Sylvain Alain
Hi, right now I own this SSD : Intel SSD 520 Series MLC 120 Gigs I'm using the latest firmware from Intel. Also, this is my /etc/fstab /dev/sda3 /bootext2 noauto,noatime,defaults 1 2 /dev/sda1 /boot/efivfatnoauto,defaults 0

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Sander
Sylvain Alain wrote (ao): > Hi, right now I own this SSD : > > Intel SSD 520 Series MLC 120 Gigs > Also, this is my /etc/fstab > /dev/sda3 /bootext2 noauto,noatime,defaults > /dev/sda1 /boot/efivfatnoauto,defaults > /dev/sda4 / btr

GPF in read_extent_buffer while scrubbing on 3.7.0-rc8-00014-g27d7c2a

2012-12-06 Thread Mathieu Chouquet-Stringer
Hello, Using the last couple of kernels (3.6 or 3.7), scrubbing my btrfs fs (which is on a luks based lvm device) will always end up crashing my pc. The error (screenshot: http://mathieu.csetco.com/btrfs-scrub-crash.jpeg) looks very similar to this crash (that's why I'm Cc'ing Sami): btr

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Martin Steigerwald
Am Donnerstag, 6. Dezember 2012 schrieb Sander: > Sylvain Alain wrote (ao): > > Hi, right now I own this SSD : > > > > Intel SSD 520 Series MLC 120 Gigs > > > Also, this is my /etc/fstab > > /dev/sda3 /bootext2 noauto,noatime,defaults > > /dev/sda1 /boot/efivfa

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Martin Steigerwald
Am Donnerstag, 6. Dezember 2012 schrieb Marc MERLIN: > On Wed, Dec 05, 2012 at 11:56:27PM -0500, Sylvain Alain wrote: > > Hi everyone, I'm running btrfs since octobre 2012 and I would like to > > understand 2 behavior that I noticed. > > > > 1. When I delete a big directory, sometimes it can hang

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Martin Steigerwald
Am Donnerstag, 6. Dezember 2012 schrieb Martin Steigerwald: > Am Donnerstag, 6. Dezember 2012 schrieb Sander: > > Sylvain Alain wrote (ao): > > > Hi, right now I own this SSD : > > > > > > Intel SSD 520 Series MLC 120 Gigs > > > > > Also, this is my /etc/fstab > > > /dev/sda3 /boot

Re: segmentation-fault in btrfsck (git-version)

2012-12-06 Thread Mitch Harder
On Wed, Dec 5, 2012 at 2:50 PM, Hendrik Friedel wrote: > Dear all, > > thanks for developing btrfsck! > Now, I'd like to contribute -as far as I can. I'm not a developer, but I do > have some linux-experience. > I've been using btrfsck on two 3TB HDDs (mirrored) for a while now under > Kernel 3.0.

[PATCH] btrfs: Notify udev when removing device

2012-12-06 Thread Lukas Czerner
Currently udev does not know about the device being removed from the file system. This may result in the situation where we're unable to mount the file system by UUID or by LABEL because the by-uuid and by-label links may still point to the device which is no longer part of the btrfs file system an

Re: Question about btrfs snapshot delay and rm -rf delay

2012-12-06 Thread Sander
Martin Steigerwald wrote (ao): > Am Donnerstag, 6. Dezember 2012 schrieb Martin Steigerwald: > > Am Donnerstag, 6. Dezember 2012 schrieb Sander: > > > Sylvain Alain wrote (ao): > > > > Hi, right now I own this SSD : > > > > > > > > Intel SSD 520 Series MLC 120 Gigs > > > > > > > Also, this is my

RE: Mounted compress-force=zlib, compresses when files copied in, but not when written directly by application

2012-12-06 Thread Thorn Roby
It appears to be an issue with the initial sparse file allocation. When I manually create 2GB datafiles using dd from /dev/zero, instead of allowing MongoDB to allocate them as needed, compression seems to be working correctly. -Original Message- From: Liu Bo [mailto:bo.li@oracle.com

[PATCH] Btrfs: no full sync flag on new inode when we do not reuse inode id

2012-12-06 Thread Liu Bo
When we are not with inode_cache option, we won't reuse inode id, which means all of inodes will own different inode id, thus we don't worry about "reuse of inode id leads to log tree's corruption" thing. Signed-off-by: Liu Bo --- fs/btrfs/inode.c |4 +++- 1 files changed, 3 insertions(+), 1