From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VVuS9-0000yc-Fl for mharc-grub-devel@gnu.org; Mon, 14 Oct 2013 22:33:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVuS1-0000yO-RG for grub-devel@gnu.org; Mon, 14 Oct 2013 22:33:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVuRu-00015H-Lx for grub-devel@gnu.org; Mon, 14 Oct 2013 22:33:37 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:51921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVuRu-000154-Dy for grub-devel@gnu.org; Mon, 14 Oct 2013 22:33:30 -0400 Received: by mail-la0-f50.google.com with SMTP id gx14so6350207lab.37 for ; Mon, 14 Oct 2013 19:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=DIuw/Wm8kXZ/TeVCxWA4+8DFFTOmrl4HWJ71NRjDA58=; b=uAiHkf7pjXW7djfChKIl43McnCm0Tg/lpvukoFzqvxHkl5zWqfvwENay5DAbJ2SkxQ JCZ2YjVe2jIzdygLkNHdC8a4QoONqb3HOVO8YFdJr5tx8NmD2Y4YYyDcQRw01Ve+AFhN XXmk4vo8TaEeqebcfeAQb2HWRn8yRWOc0qAChJwYNpMZt/oXidYH40cz2q3uXg4UMk1m qh16uKU+Ds2+zsnlCHdjA0zTYSK6zGuErMAgOeHQ/PDMs0utmUOS3YIftOkemOIqrTpJ 0Jebx4GDgLrMJGZX4UlZ1SuF/quAv5+YIvxOqLMpm7jByBaT7aDjahW6x3fXebdXJWl4 eZ7Q== X-Received: by 10.152.87.143 with SMTP id ay15mr33681728lab.2.1381804408939; Mon, 14 Oct 2013 19:33:28 -0700 (PDT) Received: from opensuse.site (ppp91-76-150-246.pppoe.mtu-net.ru. [91.76.150.246]) by mx.google.com with ESMTPSA id ny3sm140704lbb.12.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 14 Oct 2013 19:33:28 -0700 (PDT) Date: Tue, 15 Oct 2013 06:33:27 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: booting btrfs Message-ID: <20131015063327.4f44ced2@opensuse.site> In-Reply-To: <525C5902.3050104@gmail.com> References: <0C284942-C2D0-4520-93B1-3982E6AA38DF@colorremedies.com> <525AF8CD.7050100@gmail.com> <525B2D55.8060502@gmail.com> <339EF7EB-F50A-47F6-99BA-F46ABFECCF74@colorremedies.com> <20131014092807.6917958c@opensuse.site> <3D77CF50-285F-42C2-9325-47AC5ACF5FDC@colorremedies.com> <525C4615.5080803@gmail.com> <04468BB2-5F2D-47BA-8CFC-7C5604FBE315@colorremedies.com> <525C5902.3050104@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/3DXsPqVxEb5mEFUjnVq624U"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::232 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 02:33:43 -0000 --Sig_/3DXsPqVxEb5mEFUjnVq624U Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Mon, 14 Oct 2013 22:50:10 +0200 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 14.10.2013 22:45, Chris Murphy wrote: > >=20 > > On Oct 14, 2013, at 1:29 PM, Vladimir '=CF=86-coder/phcoder' Serbinenko= wrote: > >=20 > >>> So it seems that GRUB is using relative pathnames to the default subv= olume. > >> This is not intentional. When this part of code was written there was = no > >> set-default available at all so this couldn't be tested and I simply > >> followed the specification. It told to take root_tree and > >> root_dir_objectid from superblock then go to "default" directory. What > >> of this needs to be changed? Just remove "default" and make it part of > >> path? We would need to change grub-mkrelpath to match runtime behaviou= r. > >> Is there a way to detect that mountinfo gives garbage and somehow get > >> where the real root points? > >=20 > > Here's the response. It seems similar but not identical to what you des= cribed above. > >=20 > > http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg27955.html > >=20 > I don't see what is the difference between that and what GRUB currently > does. Will look tomorrow morning. I have a feeling that there was some misunderstanding about the problem. Or btrfs developers do not really intend to have multiple "active filesystems" at the same time and see "set-default" as the only legal way to switch between filesystem instances. --Sig_/3DXsPqVxEb5mEFUjnVq624U Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJcqXcACgkQR6LMutpd94yiLgCcCxzI90CPXOjTDjcvEPRrnPWm niAAn3Wk5VMykebrXdYTGEnXGIhFjYG0 =8XJk -----END PGP SIGNATURE----- --Sig_/3DXsPqVxEb5mEFUjnVq624U--