From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from email.routify.me ([162.208.10.182]:60128 "EHLO cartman.routify.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbcITUvY (ORCPT ); Tue, 20 Sep 2016 16:51:24 -0400 Date: Tue, 20 Sep 2016 16:51:21 -0400 From: Sean Greenslade To: Qu Wenruo Cc: Chris Murphy , David Sterba , Btrfs BTRFS Subject: Re: Post ext3 conversion problems Message-ID: <20160920205121.GA23668@coach.home> References: <20160916192459.GA13514@coach.home> <17ca9019-836b-f4f1-f84c-f8c1edcd9925@cn.fujitsu.com> <20160919041247.GA32208@coach.home> <20160919151341.GA1431@coach.home> <5f07d365-1eec-7f90-7969-af761834ee48@cn.fujitsu.com> <20160920033933.GA13425@coach.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: 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 executables in the PATH). Once that write happens, > > the bug triggers and the fs goes read only. > > Rewrite? Or write into new inode? > > And is the same inode always causing the problem? It's not always the same. It seems like whatever triggers a write first is what kills it. I went to test it, and this time it triggered on my .bash_history file. I have bash set up with "history -a", so presumably that was an append, not an overwrite. To cut down on the number of variables, I booted my system with the "rescue" systemd target, then su'd to my user. Simply running a few commands (with the history -a writes that bash triggered) was enough to trigger the bug. This is on 4.8.0-rc6, with the following compile time options enabled: CONFIG_BTRFS_FS_RUN_SANITY_TESTS=y CONFIG_BTRFS_DEBUG=y CONFIG_BTRFS_ASSERT=y If I run the stock Arch kernel (4.7.2 at the moment), the issue still appears, but it takes longer. My most reliable trigger is Firefox, whose constant DB writes will trigger it within minutes. --Sean