Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 594A0C432BE for ; Wed, 1 Sep 2021 14:12:49 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ABCC76102A for ; Wed, 1 Sep 2021 14:12:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ABCC76102A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3045B834EC; Wed, 1 Sep 2021 16:12:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="rUjkDrqo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11A84834E1; Wed, 1 Sep 2021 16:12:41 +0200 (CEST) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0BD67834DE for ; Wed, 1 Sep 2021 16:12:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x736.google.com with SMTP id ay33so3096538qkb.10 for ; Wed, 01 Sep 2021 07:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LopxOBDS5vG47ztQPfI9l9kx6qEID77uCKrPAJOcCUc=; b=rUjkDrqoQ9mJLtpynsaw7mZlP3VpDShyYvDLpXS6fY7eYgIOkbPJRe5zfimgOlslW5 Pxh5qRcCcMhFh4+UVzNn8peizYxBJ17lVV5yRXnuhD6yaWsDFwLJEQaClPKMLZ+FvT/Y fADO+20k6lNYU4PDLUz99Rk+wHTw/WVdQfgYQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LopxOBDS5vG47ztQPfI9l9kx6qEID77uCKrPAJOcCUc=; b=b1nPFsaX6CIPtOScAXbGZhQJZIlEnMumVY8Z3f1SQvNdcRl51pgbgaGmHpzUkkdYmw y1R8EpwgOQdfA2tHRqS8oCup3Jo0eurpveSA92hlsnLB6MkTEWeAyKg/Ebg7M8QZinrL xr55I/dQIcv6H2TOhYZKtg6K3hs3g6B73OuPvSHg1plhX62QZVTyUMISSqSZeaICRfdd u4QdBtjK3BtWCELmEsbwDAHzhhcHDgAJJAPXms1vX1Q79mWxCOEmjW0fLorc4m9Iwnci pKTqwThPvsO/GoNJE9GXIFPgEkDsaetxiw5QJ0DHVZ6MpjuA97ok2RtJ9/mEqJ7jrNqF 7MhA== X-Gm-Message-State: AOAM532WCSXMBMxWa2HnkTVwJuq45QEhv3deX+J66Le3PvQZYPdODk0f AET6bfn4gq1ZkA7wlVTjYWgbn/zWsVtFWSwI X-Google-Smtp-Source: ABdhPJziYFLcXBTgO4JJz24ByduiegzWcKqsPWab5/COXhHtMryExDXne6d1ocOYo+oDka1QwfqkHw== X-Received: by 2002:a05:620a:129c:: with SMTP id w28mr8320121qki.359.1630505554676; Wed, 01 Sep 2021 07:12:34 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-9d52-d816-c53d-6548.res6.spectrum.com. [2603:6081:7b01:cbda:9d52:d816:c53d:6548]) by smtp.gmail.com with ESMTPSA id 187sm77551qke.32.2021.09.01.07.12.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Sep 2021 07:12:33 -0700 (PDT) Date: Wed, 1 Sep 2021 10:12:31 -0400 From: Tom Rini To: "Matwey V. Kornilov" Cc: marek.behun@nic.cz, wqu@suse.com, u-boot@lists.denx.de Subject: Re: [PATCH] btrfs: Use default subvolume as filesystem root Message-ID: <20210901141231.GF858@bill-the-cat> References: <20210801205216.22639-1-matwey.kornilov@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hU7R7bjOE1ROMjuJ" Content-Disposition: inline In-Reply-To: <20210801205216.22639-1-matwey.kornilov@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --hU7R7bjOE1ROMjuJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 01, 2021 at 11:52:16PM +0300, Matwey V. Kornilov wrote: > BTRFS volume consists of a number of subvolumes which can be mounted sepa= rately > from each other. The top-level subvolume always exists even if no subvolu= mes > were created manually. A subvolume can be denoted as the default subvolum= e i.e. > the subvolume which is mounted by default. >=20 > The default "default subvolume" is the top-level one, but this is far fro= m the > common practices used in the wild. For instance, openSUSE provides an OS > snapshot/rollback feature based on BTRFS. To achieve this, the actual OS = root > filesystem is located into a separate subvolume which is "default" but not > "top-level". That means that the /boot/dtb/ directory is also located ins= ide > this default subvolume instead of top-level one. >=20 > However, the existing btrfs u-boot driver always uses the top-level subvo= lume > as the filesystem root. This behaviour 1) is inconsistent with >=20 > mount /dev/sda1 /target >=20 > command, which mount the default subvolume 2) leads to the issues when > /boot/dtb cannot be found properly (see the reference). >=20 > This patch uses the default subvolume as the filesystem root to overcome > mentioned issues. >=20 > Reference: https://bugzilla.suse.com/show_bug.cgi?id=3D1185656 > Signed-off-by: Matwey V. Kornilov > Reviewed-by: Qu Wenruo Applied to u-boot/master, thanks! --=20 Tom --hU7R7bjOE1ROMjuJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEvik8ACgkQFHw5/5Y0 tyxf5Qv+PhMv5fhCmwEnvCAK+nlfwcOtza/2XqKVgtx0hDkbkcG6pjtcyiPvArEl Y654G3HdotBTkg3lHGXEbfRZJpYrUprjt/E1I/IMPqDg3CeutLGOQJZD4G3SzoDh 7oOn+bop/A0kKJwzuZ8edMCgLaXaCfIuke72I2n1vp2JjXevktz/DHDerPWycPyY l1IYbYe5i9a2ehHdeqi6T7Ye4kQcXjsylDLo9reeYLVkKZ379GwcQbfIlBYId186 /xSY0dGXDpzOJv5HOh+UL6svs/eChbvOn2wK9guTvrfN/YRIneZ2Z22yygcTXxe3 72GZHFPkXeiEiLOBG/W/6VOig6bMrNlF+0VLkOkMEs9NHYVgCMJW42TwEtCdXaLS BIvfndQ3L14c/5yXA1hP6sDeORGvMMLNto4gX4GSPYqfyRNXUNcSC3E/SYm+Aa/z XdN8IesZgaZYbPqFL3E0OzrAMG9YC6S6JYPkzIgilt8V+7VWAH0z+OyirQ18xTIP Ucoyzer0 =w6xB -----END PGP SIGNATURE----- --hU7R7bjOE1ROMjuJ--