[PATCH V2] Btrfs-progs: add btrfs subvolume get-default subcommand

2011-07-11 Thread Zhong, Xin
Add subcommand to get the default subvolume of btrfs filesystem Reported-by: Yang, Yi yi.y.y...@intel.com Signed-off-by: Zhong, Xin xin.zh...@intel.com --- btrfs-list.c | 57 +++-- btrfs.c |3 +++ btrfs_cmds.c | 31

RE: [PATCH V2] Btrfs-progs: add btrfs subvolume get-default subcommand

2011-07-11 Thread Zhong, Xin
-Original Message- From: Andreas Philipp [mailto:philipp.andr...@gmail.com] Sent: Monday, July 11, 2011 10:11 PM To: Zhong, Xin Cc: linux-btrfs@vger.kernel.org; Hugo Mills Subject: Re: [PATCH V2] Btrfs-progs: add btrfs subvolume get-default subcommand -BEGIN PGP SIGNED

RE: [PATCH V2] Btrfs-progs: add btrfs subvolume get-default subcommand

2011-07-11 Thread Zhong, Xin
-Original Message- From: Goffredo Baroncelli kreij...@libero.it [mailto:kreij...@libero.it] Sent: Monday, July 11, 2011 8:03 PM To: Zhong, Xin Cc: linux-btrfs@vger.kernel.org Subject: R: [PATCH V2] Btrfs-progs: add btrfs subvolume get-default subcommand Messaggio originale

[PATCH V3] Btrfs-progs: add btrfs subvolume get-default subcommand

2011-07-11 Thread Zhong, Xin
-by: Yang, Yi yi.y.y...@intel.com Signed-off-by: Zhong, Xin xin.zh...@intel.com --- btrfs-list.c | 58 ++- btrfs.c|3 ++ btrfs_cmds.c | 31 - btrfs_cmds.h |3 +- man/btrfs.8.in |7 ++ 5

RE: [BUG] btrfs is tearing down whole kernel when disk is disconnected

2011-06-26 Thread Zhong, Xin
We met this situation in meego too: https://bugs.meego.com/show_bug.cgi?id=18156 There's quite a lot BUG_ON in the code path of sync or umount. If you unplug a usb or sd card before umount or immediately after umount, you will hit problem like this. I am now working on a patch to handle this

[PATCH] btrfs-progs: Improvement for making btrfs image from source directory.

2011-06-20 Thread Zhong, Xin
://marc.info/?l=linux-btrfsm=127858068226025w=2 Signed-off-by: Zhong, Xin xin.zh...@intel.com --- file-item.c |2 +- mkfs.c | 31 --- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/file-item.c b/file-item.c index 9732282..aed42c3 100644

RE: [PATCH] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
-Original Message- From: Chris Mason [mailto:chris.ma...@oracle.com] Sent: Tuesday, April 05, 2011 1:07 PM To: Zhong, Xin Cc: linux-btrfs Subject: Re: [PATCH] Btrfs: fix subvolume mount by name problem when default mount subvolume is set Excerpts from Zhong, Xin's message of 2011

[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
) to mount meego_home. Detail information can be found in meego bugzilla: https://bugs.meego.com/show_bug.cgi?id=15055 Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/super.c | 43 ++- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git

[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
) to mount meego_home. Detail information can be found in meego bugzilla: https://bugs.meego.com/show_bug.cgi?id=15055 Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/super.c | 43 ++- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git

RE: [PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
-Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs- ow...@vger.kernel.org] On Behalf Of Li Zefan Sent: Wednesday, April 06, 2011 2:34 PM To: Zhong, Xin Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH V2] Btrfs: fix subvolume mount by name problem when

[PATCH V3] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
) to mount meego_home. Detail information can be found in meego bugzilla: https://bugs.meego.com/show_bug.cgi?id=15055 Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/super.c | 42 +- 1 files changed, 33 insertions(+), 9 deletions(-) diff --git a/fs

RE: [PATCH V3] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-04-06 Thread Zhong, Xin
-Original Message- From: Andreas Philipp [mailto:philipp.andr...@gmail.com] Sent: Wednesday, April 06, 2011 4:39 PM To: Zhong, Xin Cc: linux-btrfs@vger.kernel.org; Andreas Philipp Subject: Re: [PATCH V3] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

[PATCH] Btrfs: fix subvolume fake mount problem when default subvolume is set

2011-04-06 Thread Zhong, Xin
it as subvolume. So the solution is to check if what we find is really a subvolume. Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/super.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index b85fe78..66a76b7 100644

[PATCH] Btrfs: fix subvolume mount by name problem when default mount subvolume is set

2011-03-31 Thread Zhong, Xin
=15055 Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/super.c | 23 +-- 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index db0a827..138bc4c 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -786,15 +786,18

RE: [PATCH] btrfs file write debugging patch

2011-03-07 Thread Zhong, Xin
08, 2011 6:12 AM To: Maria Wikström Cc: Mitch Harder; Chris Mason; Xin Zhong; Zhong, Xin; linux-btrfs Subject: Re: [PATCH] btrfs file write debugging patch On Monday 07 March 2011 20:56:50 Maria Wikström wrote: mån 2011-03-07 klockan 00:07 -0600 skrev Mitch Harder: On Sun, Mar 6, 2011 at 6:58 PM

RE: [PATCH] btrfs file write debugging patch

2011-03-06 Thread Zhong, Xin
That's great! :-) -Original Message- From: Mitch Harder [mailto:mitch.har...@sabayonlinux.org] Sent: Monday, March 07, 2011 2:08 PM To: Chris Mason Cc: Xin Zhong; Zhong, Xin; linux-btrfs Subject: Re: [PATCH] btrfs file write debugging patch On Sun, Mar 6, 2011 at 6:58 PM, Chris Mason

RE: [PATCH] btrfs file write debugging patch

2011-03-04 Thread Zhong, Xin
, March 04, 2011 10:41 AM To: Zhong, Xin Cc: Josef Bacik; Chris Mason; Mitch Harder; Xin Zhong; linux-btrfs@vger.kernel.org Subject: Re: [PATCH] btrfs file write debugging patch On Fri, Mar 04, 2011 at 10:42:46AM +0800, Zhong, Xin wrote: Where can I find your patch? Thanks! It's in my btrfs-work

RE: [PATCH] btrfs file write debugging patch

2011-03-03 Thread Zhong, Xin
Where can I find your patch? Thanks! -Original Message- From: Josef Bacik [mailto:jo...@redhat.com] Sent: Friday, March 04, 2011 10:32 AM To: Chris Mason Cc: Zhong, Xin; Mitch Harder; Xin Zhong; linux-btrfs@vger.kernel.org Subject: Re: [PATCH] btrfs file write debugging patch On Thu

RE: [PATCH] btrfs file write debugging patch

2011-03-01 Thread Zhong, Xin
...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Mitch Harder Sent: Tuesday, March 01, 2011 4:20 AM To: Maria Wikström Cc: Josef Bacik; Johannes Hirte; Chris Mason; Zhong, Xin; linux-btrfs@vger.kernel.org Subject: Re: [PATCH] btrfs file write debugging patch 2011/2/28

RE: [PATCH] btrfs file write debugging patch

2011-03-01 Thread Zhong, Xin
, num_pages); goto out; } -Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Zhong, Xin Sent: Tuesday, March 01, 2011 6:15 PM To: Mitch Harder; Maria Wikström Cc: Josef Bacik; Johannes Hirte

RE: [PATCH] btrfs file write debugging patch

2011-02-28 Thread Zhong, Xin
. In the next round, it write another 2k and btrfs_delalloc_reserve_space is called twice for the same page. Is it a problem? Thanks! -Original Message- From: Chris Mason [mailto:chris.ma...@oracle.com] Sent: Monday, February 28, 2011 9:46 AM To: Mitch Harder Cc: Maria Wikström; Zhong, Xin

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-20 Thread Zhong, Xin
, February 18, 2011 7:32 PM To: Zhong, Xin Cc: Johannes Hirte; linux-btrfs@vger.kernel.org Subject: RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page Seems like my reply got eaten by the lists spam filter, so I resend with attachment compressed. Should have

2.6.37 kernel BUG at fs/btrfs/inode.c:6752!

2011-02-14 Thread Zhong, Xin
We build packages in a kvm-qemu chroot environment. And the root fs is btrfs. It hang during installing packages. And we found error message in dmesg: [ 84.320466] btrfs: use compression [ 288.711396] [ cut here ] [ 288.711569] kernel BUG at fs/btrfs/inode.c:6752! [

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-02-10 Thread Zhong, Xin
Hi, Could you paste the output of sysrq+t here? Thanks! -Original Message- From: Johannes Hirte [mailto:johannes.hi...@fem.tu-ilmenau.de] Sent: Wednesday, February 02, 2011 7:35 AM To: Zhong, Xin Cc: Maria Wikström; linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2]Btrfs: pwrite

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Zhong, Xin
...@fem.tu-ilmenau.de; Zhong, Xin Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page tor 2011-01-27 klockan 14:09 +0100 skrev Johannes Hirte: On Thursday 09 December 2010 10:30:14 Zhong, Xin wrote: This problem is found

RE: [PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2011-01-27 Thread Zhong, Xin
Could you describe the steps to recreate it? It will be a great help for me to look further. Thanks! -Original Message- From: Johannes Hirte [mailto:johannes.hi...@fem.tu-ilmenau.de] Sent: Friday, January 28, 2011 10:55 AM To: Zhong, Xin Cc: Maria Wikström; linux-btrfs@vger.kernel.org

RE: [Bug 26242] New: BUG: unable to handle kernel NULL pointer dereference at (null)

2011-01-06 Thread Zhong, Xin
A similar bug has been reported by Kenneth Lakin [kennethla...@gmail.com] last week. It's related to my check-in (git commit 914ee295af418e936ec20a08c1663eaabe4cd07a). I am looking into it now. I found one suspicious code in prepage_pages (fs/btrfs/file.c): start_pos = pos

RE: [Bug 26242] New: BUG: unable to handle kernel NULL pointer dereference at (null)

2011-01-06 Thread Zhong, Xin
I have checked latest mkfs code. If page size is 4k. sector size will be 4k too. So at least for x86 hardware, page size and sector size will always be the same. -Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Zhong

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-13 Thread Zhong, Xin
I have sent my test case to xfs mailing list (No. 248). Please help to review it. Thanks! -Original Message- From: Christoph Hellwig [mailto:h...@infradead.org] Sent: Wednesday, December 08, 2010 12:55 AM To: Zhong, Xin Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH] Btrfs: pwrite

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-13 Thread Zhong, Xin
Chris, thanks a lot for your quick response. Thanks to Zheng Yan too for his careful review. -Original Message- From: Chris Mason [mailto:chris.ma...@oracle.com] Sent: Tuesday, December 14, 2010 9:36 AM To: Zhong, Xin Cc: Christoph Hellwig; linux-btrfs@vger.kernel.org Subject: RE

[PATCH v2]Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-09 Thread Zhong, Xin
-by: Yan, Zhengzheng.z@intel.com Signed-off-by: Zhong, Xin xin.zh...@intel.com --- fs/btrfs/file.c | 92 --- 1 files changed, 60 insertions(+), 32 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index c1faded..66836d8 100644

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
? Thanks! -Original Message- From: Zhong, Xin Sent: Tuesday, December 07, 2010 4:00 PM To: linux-btrfs@vger.kernel.org Cc: Zhong, Xin Subject: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page This problem is found in meego testing: http://bugs.meego.com

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
Sorry, the format of the patch is not correct. I will submit again. -Original Message- From: linux-btrfs-ow...@vger.kernel.org [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Zhong, Xin Sent: Tuesday, December 07, 2010 4:46 PM To: linux-btrfs@vger.kernel.org Subject: RE: [PATCH

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
The previous patch is not ok (http://www.spinics.net/lists/linux-btrfs/msg07447.html). Please ignore it. Thanks! -Original Message- From: Zhong, Xin Sent: Tuesday, December 07, 2010 5:25 PM To: linux-btrfs@vger.kernel.org Cc: Zhong, Xin Subject: [PATCH] Btrfs: pwrite blocked when

RE: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page

2010-12-07 Thread Zhong, Xin
? Thanks! -Original Message- From: Zhong, Xin Sent: Tuesday, December 07, 2010 5:25 PM To: linux-btrfs@vger.kernel.org Cc: Zhong, Xin Subject: [PATCH] Btrfs: pwrite blocked when writing from the mmaped buffer of the same page This problem is found in meego testing: http://bugs.meego.com