Re: Post ext3 conversion problems

2016-09-25 Thread Qu Wenruo
At 09/26/2016 10:16 AM, Sean Greenslade wrote: On Tue, Sep 20, 2016 at 04:51:21PM -0400, Sean Greenslade wrote: On Tue, Sep 20, 2016 at 01:02:38PM +0800, Qu Wenruo wrote: Glad to hear you've found the core of the issue. At this point, I can trigger it immediately. As soon as I log in and run

Re: Post ext3 conversion problems

2016-09-25 Thread Sean Greenslade
On Tue, Sep 20, 2016 at 04:51:21PM -0400, Sean Greenslade wrote: > On Tue, Sep 20, 2016 at 01:02:38PM +0800, Qu Wenruo wrote: > > > Glad to hear you've found the core of the issue. > > > > > > At this point, I can trigger it immediately. As soon as I log in and run > > > dmenu, it will attempt to

Re: Post ext3 conversion problems

2016-09-20 Thread Sean Greenslade
On Tue, Sep 20, 2016 at 01:02:38PM +0800, Qu Wenruo wrote: > > Glad to hear you've found the core of the issue. > > > > At this point, I can trigger it immediately. As soon as I log in and run > > dmenu, it will attempt to rebuild its cache file (small text file that's > > just a list of all execu

Re: Post ext3 conversion problems

2016-09-19 Thread Qu Wenruo
At 09/20/2016 11:39 AM, Sean Greenslade wrote: On Tue, Sep 20, 2016 at 10:49:42AM +0800, Qu Wenruo wrote: OK, I see the problem now. The new convert is designed to create minimal number of extents, so it result the following file extents layout: Ext2_save/image | /---

Re: Post ext3 conversion problems

2016-09-19 Thread Sean Greenslade
On Tue, Sep 20, 2016 at 10:49:42AM +0800, Qu Wenruo wrote: > OK, I see the problem now. > > The new convert is designed to create minimal number of extents, so it > result the following file extents layout: > > Ext2_save/image > | > /---\ > | Extent A

Re: Post ext3 conversion problems

2016-09-19 Thread Qu Wenruo
At 09/19/2016 11:13 PM, Sean Greenslade wrote: On Mon, Sep 19, 2016 at 02:30:28PM +0800, Qu Wenruo wrote: All chunks are completed convert to DUP, no small chunk, all to its maximum chunk size. So from chunk level, nothing related to convert yet. But for extent tree, I found several extents a

Re: Post ext3 conversion problems

2016-09-19 Thread Sean Greenslade
On Mon, Sep 19, 2016 at 02:30:28PM +0800, Qu Wenruo wrote: > All chunks are completed convert to DUP, no small chunk, all to its maximum > chunk size. > So from chunk level, nothing related to convert yet. > > But for extent tree, I found several extents are heavily referred to. > Like extent 1581

Re: Post ext3 conversion problems

2016-09-18 Thread Sean Greenslade
On Mon, Sep 19, 2016 at 10:20:37AM +0800, Qu Wenruo wrote: > > -95 is -EOPNOTSUPP. > > Not a common errno in btrfs. > > Most EOPNOTSUPP are related to discard and crapped fallcate/drop extents. > > Then are you using discard mount option? I did indeed have the discard mount option enabled. I t

Re: Post ext3 conversion problems

2016-09-18 Thread Qu Wenruo
At 09/17/2016 04:23 AM, Chris Murphy wrote: On Fri, Sep 16, 2016 at 1:25 PM, Sean Greenslade wrote: Hi, all. I've been playing around with an old laptop of mine, and I figured I'd use it as a learning / bugfinding opportunity. Its /home partition was originally ext3. I have a full partition i

Re: Post ext3 conversion problems

2016-09-16 Thread Sean Greenslade
On Fri, Sep 16, 2016 at 07:27:58PM -0700, Liu Bo wrote: > Interesting, seems that we get errors from > > btrfs_finish_ordered_io > insert_reserved_file_extent > __btrfs_drop_extents > > And splitting an inline extent throws -95. Heh, you beat me to the draw. I was just coming to the same

Re: Post ext3 conversion problems

2016-09-16 Thread Liu Bo
On Fri, Sep 16, 2016 at 03:25:00PM -0400, Sean Greenslade wrote: > Hi, all. I've been playing around with an old laptop of mine, and I > figured I'd use it as a learning / bugfinding opportunity. Its /home > partition was originally ext3. I have a full partition image of this > drive as a backup, s

Re: Post ext3 conversion problems

2016-09-16 Thread Sean Greenslade
On Fri, Sep 16, 2016 at 05:45:59PM -0600, Chris Murphy wrote: > On Fri, Sep 16, 2016 at 5:25 PM, Sean Greenslade > wrote: > > > In the mean time, is there any way to make the kernel more verbose about > > btrfs errors? It would be nice to see, for example, what was in the > > transaction that fai

Re: Post ext3 conversion problems

2016-09-16 Thread Chris Murphy
On Fri, Sep 16, 2016 at 5:25 PM, Sean Greenslade wrote: > In the mean time, is there any way to make the kernel more verbose about > btrfs errors? It would be nice to see, for example, what was in the > transaction that failed, or at least what files / metadata it was > touching. No idea. Maybe

Re: Post ext3 conversion problems

2016-09-16 Thread Sean Greenslade
On Fri, Sep 16, 2016 at 02:23:44PM -0600, Chris Murphy wrote: > Not a mess, I think it's a good bug report. I think Qu and David know > more about the latest iteration of the convert code. If you can wait > until next week at least to see if they have questions that'd be best. > If you need to get

Re: Post ext3 conversion problems

2016-09-16 Thread Chris Murphy
On Fri, Sep 16, 2016 at 1:25 PM, Sean Greenslade wrote: > Hi, all. I've been playing around with an old laptop of mine, and I > figured I'd use it as a learning / bugfinding opportunity. Its /home > partition was originally ext3. I have a full partition image of this > drive as a backup, so I can