Re: bad tree block start, want 705757184 have 82362368

2018-11-18 Thread Anand Jain
On 11/18/2018 03:56 PM, Stephan Olbrich wrote: Am Sonntag, 18. November 2018, 01:30:14 CET schrieb Qu Wenruo: Late on I got the same errors for my /home partition (on the same drive) as well. I have snapshots of all partitions on another drive made by btrbk. To get a working system, I made

Important

2018-11-18 Thread Reem Al-Hashimi
Hello, My name is ms. Reem Al-Hashimi. The UAE minister of state for international cooparation. I got your contact from a certain email database from your country while i was looking for someone to handle a huge financial transaction for me in confidence. Can you receive and invest on behalf

Re: Broken filesystem, looking for guidance

2018-11-18 Thread Sébastien Luttringer
On Mon, 2018-11-19 at 08:48 +0800, Qu Wenruo wrote: > > On 2018/11/19 上午3:37, Sébastien Luttringer wrote: > > You haven't post btrfs check --readonly output, thus not helpful. The oldest `btrfs check --readonly' output I saved is from 29th October with a vanilla linux 4.19.0 kernel. Filename:

Re: [PATCH V10 02/19] block: introduce bio_for_each_bvec()

2018-11-18 Thread Ming Lei
On Fri, Nov 16, 2018 at 02:30:28PM +0100, Christoph Hellwig wrote: > > +static inline void __bio_advance_iter(struct bio *bio, struct bvec_iter > > *iter, > > + unsigned bytes, bool mp) > > I think these magic 'bool np' arguments and wrappers over wrapper > don't

Re: [PATCH V10 01/19] block: introduce multi-page page bvec helpers

2018-11-18 Thread Ming Lei
On Sun, Nov 18, 2018 at 08:10:14PM -0700, Jens Axboe wrote: > On 11/18/18 7:23 PM, Ming Lei wrote: > > On Fri, Nov 16, 2018 at 02:13:05PM +0100, Christoph Hellwig wrote: > >>> -#define bvec_iter_page(bvec, iter) \ > >>> +#define mp_bvec_iter_page(bvec, iter)

Re: Broken filesystem, looking for guidance

2018-11-18 Thread Qu Wenruo
On 2018/11/19 上午11:29, Sébastien Luttringer wrote: > On Mon, 2018-11-19 at 08:48 +0800, Qu Wenruo wrote: >> >> On 2018/11/19 上午3:37, Sébastien Luttringer wrote: >> >> You haven't post btrfs check --readonly output, thus not helpful. > > The oldest `btrfs check --readonly' output I saved is from

Re: Broken filesystem, looking for guidance

2018-11-18 Thread Sébastien Luttringer
On Mon, 2018-11-19 at 13:00 +0800, Qu Wenruo wrote: > May I ask for the oldest kernel ran on the fs? Looks like the first kernel on the host is 3.12.2. > To make it clear again, any --init-* should only be used when you're > completely sure what is going to happen (at code level). Copy. > >

Re: Broken filesystem, looking for guidance

2018-11-18 Thread Qu Wenruo
On 2018/11/19 下午1:23, Sébastien Luttringer wrote: > On Mon, 2018-11-19 at 13:00 +0800, Qu Wenruo wrote: >> May I ask for the oldest kernel ran on the fs? > Looks like the first kernel on the host is 3.12.2. OK, then it makes sense for such strange dir ref corruption. > >> To make it clear

Re: [PATCH V10 03/19] block: use bio_for_each_bvec() to compute multi-page bvec count

2018-11-18 Thread Ming Lei
On Thu, Nov 15, 2018 at 12:20:28PM -0800, Omar Sandoval wrote: > On Thu, Nov 15, 2018 at 04:52:50PM +0800, Ming Lei wrote: > > First it is more efficient to use bio_for_each_bvec() in both > > blk_bio_segment_split() and __blk_recalc_rq_segments() to compute how > > many multi-page bvecs there are

Re: [PATCH V10 04/19] block: use bio_for_each_bvec() to map sg

2018-11-18 Thread Ming Lei
On Fri, Nov 16, 2018 at 02:33:14PM +0100, Christoph Hellwig wrote: > > + if (!*sg) > > + return sglist; > > + else { > > No need for an else after an early return. OK, good catch! Thanks, Ming

Re: [PATCH V10 05/19] block: introduce bvec_last_segment()

2018-11-18 Thread Ming Lei
On Thu, Nov 15, 2018 at 03:23:56PM -0800, Omar Sandoval wrote: > On Thu, Nov 15, 2018 at 04:52:52PM +0800, Ming Lei wrote: > > BTRFS and guard_bio_eod() need to get the last singlepage segment > > from one multipage bvec, so introduce this helper to make them happy. > > > > Cc: Dave Chinner > >

Re: Broken filesystem, looking for guidance

2018-11-18 Thread Qu Wenruo
On 2018/11/19 上午3:37, Sébastien Luttringer wrote: > Hello, > > I opened a bug report[1] Normally mail list will give you a quick response. > about a situation I have with a btrfs filesystem on my > backup server. Looks like there is internal errors inside the filesytem which > cannot be fixed

Broken filesystem, looking for guidance

2018-11-18 Thread Sébastien Luttringer
Hello, I opened a bug report[1] about a situation I have with a btrfs filesystem on my backup server. Looks like there is internal errors inside the filesytem which cannot be fixed by btrfs check. Currently, each time I cat a specific file, the filesystem is remounted read-only. How can I get