[PATCH] Btrfs-progs: make use of column_name

2012-10-16 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- btrfs-list.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 74782b8..9cfdb35 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1432,7 +1432,7

[PATCH V3] Btrfs-progs: add parent uuid for snapshots

2012-10-16 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- btrfs-list.c | 32 +++- btrfs-list.h |1 + cmds-subvolume.c |6 +- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/btrfs-list.c

[PATCH] Btrfs-progs: update man page for -u and -q option in subvol list

2012-10-16 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- man/btrfs.8.in |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 57c25b0..91f2af2 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@

Re: [PATCH V2] Btrfs-progs: add parent uuid for snapshots

2012-10-16 Thread Anand Jain
I agree. Thanks for the comments. New patch has been sent out. -Anand On 09/10/12 23:44, David Sterba wrote: On Fri, Oct 05, 2012 at 10:25:22AM +0800, Anand jain wrote: @@ -128,6 +129,11 @@ struct { .need_print = 0, }, { + .name =

[PATCH] btrfs-progs: add -V description in print_usage

2012-10-16 Thread Wang Sheng-Hui
mkfs supports the option -V/--version. Add its description to print_usage(). Signed-off-by: Wang Sheng-Hui shh...@gmail.com --- mkfs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mkfs.c b/mkfs.c index 47f0c9c..2cc6051 100644 --- a/mkfs.c +++ b/mkfs.c @@ -349,6 +349,7

[PATCH] btrfs: Return EINVAL when length to trim is less than FSB

2012-10-16 Thread Lukas Czerner
Currently if len argument in btrfs_ioctl_fitrim() is smaller than one FSB we will continue and finally return 0 bytes discarded. However if the length to discard is smaller then file system block we should really return EINVAL. Signed-off-by: Lukas Czerner lczer...@redhat.com ---

[PATCH] Btrfs: fix deadlock caused by the nested chunk allocation

2012-10-16 Thread Miao Xie
Steps to reproduce: # mkfs.btrfs -m raid1 disk1 disk2 # btrfstune -S 1 disk1 # mount disk1 mnt # btrfs device add disk3 disk4 mnt # mount -o remount,rw mnt # dd if=/dev/zero of=mnt/tmpfile bs=1M count=1 Deadlock happened. It is because of the nested chunk allocation. When we wrote the data

[PATCH 1/2] Btrfs: fix wrong comment in can_overcommit()

2012-10-16 Thread Miao Xie
The comment is not coincident with the code. Fix it. Signed-off-by: Miao Xie mi...@cn.fujitsu.com --- fs/btrfs/extent-tree.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 7563db7..2cfcce2 100644 ---

[PATCH 2/2] Btrfs: improve the noflush reservation

2012-10-16 Thread Miao Xie
In some places(such as: evicting inode), we just can not flush the reserved space of delalloc, flushing the delayed directory index and delayed inode is OK, but we don't try to flush those things and just go back when there is no enough space to be reserved. This patch fixes this problem. We

[PATCH] btrfs-progs: check non-digit character in the size value for mkfs options

2012-10-16 Thread Wang Sheng-Hui
When we run mkfs.btrfs, we can specify the size value for leafsize, etc. Current the limit is 65536, and the lower limit is 4096. Also, the size should be 4096 aligned. When we specify such value, parse_size just check the tailing non-digit character, but doesn't check other characters. For

Free space cache writeback issue

2012-10-16 Thread Jan Schmidt
Hi, I've hit an issue with the free space cache. It looks like we miss writing everything to disk on unmount under rough conditions. Setup: git head cmason/master, /dev/sdv1 is a 55MB partition on an SSD. Run the following script: -- DEV=/dev/sdv1 MP=/mnt/scratch umount $MP mkfs.btrfs -M $DEV

Re: problems with btrfs send / restore

2012-10-16 Thread Stefan Priebe - Profihost AG
Am 15.10.2012 22:14, schrieb Alex Lyakas: Stefan, the second issue you're seeing was discussed here: http://www.spinics.net/lists/linux-btrfs/msg19672.html You can apply the patch I sent there meanwhile, but as Miao pointed out, I will need to make a better patch (hope will do it soon, together

Re: Can not Mount btrfs No Space left

2012-10-16 Thread Shawn Dakin
Well, I mounted the volume ro and copied that data to another device. Then I cleaned the junk out and then copied the data back to the original device which I had wiped. Total recovery time 4 hours. Thanks for the hint Hugo, I don't know why it never occurred to me to mount it read only. On Mon,

[PATCH] Change the check for PageReadahead into an else-if

2012-10-16 Thread raghu . prabhu13
From: Raghavendra D Prabhu rpra...@wnohang.net From 51daa88ebd8e0d437289f589af29d4b39379ea76, page_sync_readahead coalesces async readahead into its readahead window, so another checking for that again is not required. Signed-off-by: Raghavendra D Prabhu rpra...@wnohang.net ---

Re: [PATCH v2] Btrfs: extended inode refs support for send mechanism

2012-10-16 Thread Mark Fasheh
On Mon, Oct 15, 2012 at 10:30:45AM +0200, Jan Schmidt wrote: This adds support for the new extended inode refs to btrfs send. Signed-off-by: Jan Schmidt list.bt...@jan-o-sch.net --- fs/btrfs/backref.c | 22 - fs/btrfs/backref.h |4 ++ fs/btrfs/send.c| 126

filesystem in such a state that btrfsck crashes

2012-10-16 Thread Sami Haahtinen
Hi, A few days ago I started experiencing some major slowdowns in my main btrfs filesystem and when inspecting the errors I noticed an error during balance: btrfs: block rsv returned -28 After a while I started seeing worse and worse problems with the filesystem. Eventually I was forced to

Re: [PATCH] Change the check for PageReadahead into an else-if

2012-10-16 Thread Fengguang Wu
On Wed, Oct 17, 2012 at 12:28:05AM +0530, raghu.prabh...@gmail.com wrote: From: Raghavendra D Prabhu rpra...@wnohang.net From 51daa88ebd8e0d437289f589af29d4b39379ea76, page_sync_readahead coalesces async readahead into its readahead window, so another checking for that again is not

Re: [PATCH] Change the check for PageReadahead into an else-if

2012-10-16 Thread KOSAKI Motohiro
On Tue, Oct 16, 2012 at 10:00 PM, Fengguang Wu fengguang...@intel.com wrote: On Wed, Oct 17, 2012 at 12:28:05AM +0530, raghu.prabh...@gmail.com wrote: From: Raghavendra D Prabhu rpra...@wnohang.net From 51daa88ebd8e0d437289f589af29d4b39379ea76, page_sync_readahead coalesces async readahead