Re: Unable to rescue RAID5

2016-10-15 Thread Hiroshi Honda
> You should probably look at `btrfs restore`. I'm not sure how well it works > with the raid56 code, and > you'll need somewhere to put the data being restored, but that's probably > your best option. I tried it already. and then it was "cannot read chunk root". Please take see 1st article

Re: btrfs bio linked list corruption.

2016-10-15 Thread Dave Jones
On Thu, Oct 13, 2016 at 05:18:46PM -0400, Chris Mason wrote: > > > > .. and of course the first thing that happens is a completely > > different > > > > btrfs trace.. > > > > > > > > > > > > WARNING: CPU: 1 PID: 21706 at fs/btrfs/transaction.c:489 > > start_transaction+0x40a/0x440

Re: speed up cp --reflink=always

2016-10-15 Thread Hans van Kranenburg
Hi, On 10/15/2016 10:49 PM, Stefan Priebe - Profihost AG wrote: > > cp --reflink=always takes sometimes very long. (i.e. 25-35 minutes) > > An example: > > source file: > # ls -la vm-279-disk-1.img > -rw-r--r-- 1 root root 204010946560 Oct 14 12:15 vm-279-disk-1.img > > target file after

Re: [RFC] btrfs: make max inline data can be equal to sectorsize

2016-10-15 Thread Zygo Blaxell
On Wed, Oct 12, 2016 at 11:35:46AM +0800, Wang Xiaoguang wrote: > hi, > > On 10/11/2016 11:49 PM, Chris Murphy wrote: > >On Tue, Oct 11, 2016 at 12:47 AM, Wang Xiaoguang > > wrote: > >>If we use mount option "-o max_inline=sectorsize", say 4096, indeed > >>even for a

speed up cp --reflink=always

2016-10-15 Thread Stefan Priebe - Profihost AG
Hello, cp --reflink=always takes sometimes very long. (i.e. 25-35 minutes) An example: source file: # ls -la vm-279-disk-1.img -rw-r--r-- 1 root root 204010946560 Oct 14 12:15 vm-279-disk-1.img target file after around 10 minutes: # ls -la vm-279-disk-1.img.tmp -rw-r--r-- 1 root root

Re: Rust library for BTRFS

2016-10-15 Thread Hans van Kranenburg
On 10/15/2016 04:31 PM, James Pharaoh wrote: > > I have created a BTRFS library for Rust - very incomplete so far, but > possibly of interest to someone. Nice work, I'm doing the same for python. Just picked up working on it again, after summer: https://github.com/knorrie/python-btrfs >

Re: [PATCH 2/3] misc: fix fallocate commands that need the unshare switch

2016-10-15 Thread Christoph Hellwig
On Fri, Oct 14, 2016 at 11:13:02AM -0700, Darrick J. Wong wrote: > We re-added the UNSHARE flag to fallocate, so go make sure that all > the unshare tests actually check that the xfs_io falloc command > supports that flag. We'll need to improve _require_xfs_io_command to actually run the command

Rust library for BTRFS

2016-10-15 Thread James Pharaoh
Hi all, I have created a BTRFS library for Rust - very incomplete so far, but possibly of interest to someone. https://gitlab.wellbehavedsoftware.com/well-behaved-software/rust-btrfs I've basically reimplemented what I find in other tools because, as far as I can tell, there is no C library