From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from datenkhaos.de ([81.89.99.198]:39129 "EHLO datenkhaos.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758183AbaIOWSH (ORCPT ); Mon, 15 Sep 2014 18:18:07 -0400 Date: Tue, 16 Sep 2014 00:17:57 +0200 From: Johannes Hirte To: Anand Jain Cc: "xavier.gnata@gmail.com" , linux-btrfs@vger.kernel.org Subject: Re: "Btrfs: device_list_add() should not update list when mounted" breaks subvol mount Message-ID: <20140916001757.62ea5219@datenkhaos.de> In-Reply-To: <54172465.80002@oracle.com> References: <20140911002241.201bc6c2@datenkhaos.de> <54110AEC.6040301@oracle.com> <54135AE7.40400@gmail.com> <5413D7E5.6080905@oracle.com> <20140913195525.333f93a4@datenkhaos.de> <20140913232320.64fd189c@datenkhaos.de> <5416DC7A.1070608@oracle.com> <20140915191445.35ad18d2@datenkhaos.de> <54172465.80002@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Tue, 16 Sep 2014 01:39:49 +0800 Anand Jain wrote: > > > On 16/09/2014 01:14, Johannes Hirte wrote: > > On Mon, 15 Sep 2014 20:32:58 +0800 > > Anand Jain wrote: > > > >> > >> > >> Hi Johannes, > >> > >> Can I have you this tested.. ? Thanks. > >> > >> > >> ------- > >> diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c > >> index e9676a4..1224b61 100644 > >> --- a/fs/btrfs/volumes.c > >> +++ b/fs/btrfs/volumes.c > >> @@ -533,7 +533,7 @@ static noinline int device_list_add(const char > >> *path, > >> * the btrfs dev scan cli, after FS has been > >> mounted. */ > >> if (fs_devices->opened) { > >> - return -EBUSY; > >> + goto out; > >> } else { > >> /* > >> * That is if the FS is _not_ mounted > >> and if you @@ -566,6 +566,7 @@ static noinline int > >> device_list_add(const char *path, if (!fs_devices->opened) > >> device->generation = found_transid; > >> > >> +out: > >> *fs_devices_ret = fs_devices; > >> > >> return ret; > >> ------- > > > > With this change, it works again without initramfs. > > Thanks. I am bit confused, is there any configuration that is > still not working, even with the above changes. > > Anand At moment, I'm not aware of any. But I will test the remaining systems I have. regards, Johannes