Re: multiple device usage

2008-12-29 Thread Chris Samuel
On Sat, 27 Dec 2008 5:45:42 pm Chris Samuel wrote: I'll add two questions that're not answered by the Wiki too.. :-) Looking at the source implies to me: 1) If you add a second disk to an existing btrfs filesystem, can you get it to set it up as a RAID-1 arrangement rather than just

Re: multiple device usage

2008-12-29 Thread Chris Samuel
Hello Yan, On Mon, 29 Dec 2008 11:33:18 pm Yan Zheng wrote: 2008/12/29 Chris Samuel ch...@csamuel.org: The rebalancing code does appear (from a naive read of the code) to be able to rebalance over stripes, but I have no idea if the disk format currently supports changing that on the fly.

[PATCH]Btrfs:Fix discard semantic

2008-12-29 Thread Liu Hui
Hi, This is a patch to fix discard semantic to make Btrfs work with FTL(or SSD?). As we know, we can improve FTL's performance by telling it which sectors are freed by file system. But if we don't tell FTL the information of free sectors in proper time, the transaction mechanism of Btrfs will be

[PATCH] always check btrfs_alloc_path() failure

2008-12-29 Thread Diego Calleja
There are some places that don't check at all btrfs_alloc_path() failures, I added BUG_ON's for all of them, as many other codepaths that don't know how to handle the failures seem to do. In case of not applying this patch, I must notice that there's one real bugfix that should be applied, it's a

A bug with multiple devices?

2008-12-29 Thread Shen Feng
Hi, I create a raid-1 btrfs with the following command. [r...@localhost ~]# fdisk -l /dev/sdb Disk /dev/sdb: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xb44829ea Device Boot Start