[PATCH 1/2] btrfs-progs: limit the max value of leafsize and nodesize

2012-09-26 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -l 131072 /dev/sda will return no error, but after mount it, the dmesg will report: BTRFS: couldn't mount because metadata blocksize (131072) was too large The user tools should use BTRFS_MAX_METADATA_BLOCKSIZE to limit

[PATCH 2/2] btrfs-progs: limit the min value of total_bytes

2012-09-26 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -b 1048576 /dev/sda will report error: mkfs.btrfs: volumes.c:796: btrfs_alloc_chunk: Assertion `!(ret)' failed. Aborted because the length of dev_extent is 4MB. But if we use mkfs.btrfs with 8MB total

[PATCH v2 1/2] btrfs-progs: limit the max value of leafsize and nodesize

2012-09-27 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -l 131072 /dev/sda will return no error, but after mount it, the dmesg will report: BTRFS: couldn't mount because metadata blocksize (131072) was too large The leafsize and nodesize are equal at present, so we just us

[PATCH v2 2/2] btrfs-progs: limit the min value of total_bytes

2012-09-27 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -b 1048576 /dev/sda will report error: mkfs.btrfs: volumes.c:796: btrfs_alloc_chunk: Assertion `!(ret)' failed. Aborted because the length of dev_extent is 4MB. But if we use mkfs.btrfs with 8MB total bytes

[PATCH 1/2] btrfs: remove unused function btrfs_insert_some_items()

2012-09-29 Thread Robin Dong
From: Robin Dong The function btrfs_insert_some_items() would not be called by any other functions, so remove it. Signed-off-by: Robin Dong --- fs/btrfs/ctree.c | 143 -- 1 files changed, 0 insertions(+), 143 deletions(-) diff --git a/fs

[PATCH 2/2] btrfs: move inline function code to header file

2012-09-29 Thread Robin Dong
From: Robin Dong When building btrfs from kernel code, it will report: fs/btrfs/extent_io.h:281: warning: 'extent_buffer_page' declared inline after being called fs/btrfs/extent_io.h:281: warning: previous declaration of 'extent_buffer_page' was h

Re: [PATCH v2 2/2] btrfs-progs: limit the min value of total_bytes

2012-10-08 Thread Robin Dong
2012/10/1 David Sterba : > On Fri, Sep 28, 2012 at 11:02:40AM +0800, Robin Dong wrote: >> From: Robin Dong >> >> Using mkfs.btrfs like: >> >> mkfs.btrfs -b 1048576 /dev/sda >> >> will report error: >> >> mkfs.btrfs: volume

[PATCH v3 1/2] btrfs-progs: limit the max value of leafsize and nodesize

2012-10-08 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -l 131072 /dev/sda will return no error, but after mount it, the dmesg will report: BTRFS: couldn't mount because metadata blocksize (131072) was too large The leafsize and nodesize are equal at present, so we just us

[PATCH v3 2/2] btrfs-progs: limit the min value of total_bytes

2012-10-08 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -b 1048576 /dev/sda will report error: mkfs.btrfs: volumes.c:796: btrfs_alloc_chunk: Assertion `!(ret)' failed. Aborted because the length of dev_extent is 4MB. For the single/single case it's 5MB but for t

[PATCH v3 2/2] btrfs-progs: limit the min value of total_bytes

2012-10-08 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -b 1048576 /dev/sda will report error: mkfs.btrfs: volumes.c:796: btrfs_alloc_chunk: Assertion `!(ret)' failed. Aborted because the length of dev_extent is 4MB. For the single/single case it's 5MB but for t

[PATCH v3 1/2] btrfs-progs: limit the max value of leafsize and nodesize

2012-10-09 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -l 131072 /dev/sda will return no error, but after mount it, the dmesg will report: BTRFS: couldn't mount because metadata blocksize (131072) was too large The leafsize and nodesize are equal at present, so we just us

[PATCH v3 2/2] btrfs-progs: limit the min value of total_bytes

2012-10-09 Thread Robin Dong
From: Robin Dong Using mkfs.btrfs like: mkfs.btrfs -b 1048576 /dev/sda will report error: mkfs.btrfs: volumes.c:796: btrfs_alloc_chunk: Assertion `!(ret)' failed. Aborted because the length of dev_extent is 4MB. For the single/single case it's 5MB but for t