Re: [PATCH v5 1/2] common/populate: use _require_xfs_io_command() in right place

2016-11-05 Thread Eryu Guan
On Wed, Nov 02, 2016 at 12:07:26PM +0800, Wang Xiaoguang wrote: > In original common/populate codes, we put _require_xfs_io_command "falloc" and > _require_xfs_io_command "fpunch" in the begin of common/populate, but it's > not appropriate, for fs, which does not support falloc and punch, will not

Transid verify failure after unexpected reboot (4.7, RAID-1)

2016-11-05 Thread Hugo Mills
Not sure if there's anything I can do about this or not. I suspect not, but if anyone's got any good ideas about fixing it, please let me know... My server crashed earlier this evening -- an OOM tried to kill qemu, and kvm took exception to it. After rebooting, my 6-device RAID-1 btrfs a

[PATCH 2/2] btrfs: increment ctx->pos for every emitted or skipped dirent in readdir

2016-11-05 Thread jeffm
From: Jeff Mahoney If we process the last item in the leaf and hit an I/O error while reading the next leaf, we return -EIO without having adjusted the position. Since we have emitted dirents, getdents() will return the byte count to the user instead of the error. Subsequent callers will emit t

[PATCH 1/2] btrfs: remove old tree_root dirent processing in btrfs_real_readdir()

2016-11-05 Thread jeffm
From: Jeff Mahoney Commit 3de4586c527 (Btrfs: Allow subvolumes and snapshots anywhere in the directory tree) introduced the current system of placing snapshots in the directory tree. It also introduced the behavior of creating the snapshot and then creating the directory entries for it. We've k

Re: [PATCH] btrfs: remove old tree_root dirent processing in btrfs_real_readdir()

2016-11-05 Thread Jeff Mahoney
ned this up in the next patch that I'm still testing. I'll re-send. -Jeff > url: > https://github.com/0day-ci/linux/commits/jeffm-suse-com/btrfs-remove-old-tree_root-dirent-processing-in-btrfs_real_readdir/20161105-104432 > base: https://git.kernel.org/pub/scm/linux/ker

Re: [BUG] Btrfs scrub sometime recalculate wrong parity in raid5

2016-11-05 Thread Goffredo Baroncelli
Resent because I don't see it in ml Hi Qu, On 2016-11-04 03:10, Qu Wenruo wrote: [...] > > I reproduced your problem and find that seems to be a problem of race. [...] [...]> > I digged a little further into the case 2) and found: > a) Kernel is scrubbing correct ran