All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Qu Wenruo <wqu@suse.com>,
	"Matwey V. Kornilov" <matwey.kornilov@gmail.com>,
	marek.behun@nic.cz, u-boot@lists.denx.de
Subject: Re: [PATCH] btrfs: Use default subvolume as filesystem root
Date: Wed, 1 Sep 2021 07:36:59 -0400	[thread overview]
Message-ID: <20210901113659.GX858@bill-the-cat> (raw)
In-Reply-To: <94e2a6c0-3aa6-9b4c-0459-07a7db14ee95@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

On Wed, Sep 01, 2021 at 01:28:30PM +0200, Matthias Brugger wrote:
> Hi Tom,
> 
> On 02/08/2021 01:06, Qu Wenruo wrote:
> > 
> > 
> > On 2021/8/2 上午4:52, Matwey V. Kornilov wrote:
> >> BTRFS volume consists of a number of subvolumes which can be mounted separately
> >> from each other. The top-level subvolume always exists even if no subvolumes
> >> were created manually. A subvolume can be denoted as the default subvolume i.e.
> >> the subvolume which is mounted by default.
> >>
> >> The default "default subvolume" is the top-level one, but this is far from 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 inside
> >> this default subvolume instead of top-level one.
> >>
> >> However, the existing btrfs u-boot driver always uses the top-level subvolume
> >> as the filesystem root. This behaviour 1) is inconsistent with
> >>
> >>      mount /dev/sda1 /target
> >>
> >> command, which mount the default subvolume 2) leads to the issues when
> >> /boot/dtb cannot be found properly (see the reference).
> > 
> > I also noticed the problem in the past, but forgot to fix it....
> > 
> >>
> >> This patch uses the default subvolume as the filesystem root to overcome
> >> mentioned issues.
> >>
> >> Reference: https://bugzilla.suse.com/show_bug.cgi?id=1185656
> >> Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
> > 
> > Reviewed-by: Qu Wenruo <wqu@suse.com>
> > 
> 
> I can see that this patch is marked in your patchwork queue as "Need Review /
> ACK". Qu is one of our core btrfs developer who reviewed the patch. Apart from
> that we have it running on openSUSE on top of v2021.07 for some time without any
> issues.

Ah, yup.  Qu is one of the people I do look for to have reviewed a btrfs
patch before I apply it (and I throw things under Need Review / ACK as a
note-to-self to make sure a patch does have one, when I can expect one,
before applying, FWIW).

> Would it be possible to merge this for v2021.10 or do you see any blocker here?

I think I had mentally filed it was feature not bugfix and was going to
hold off, but since you're asking, yes, I can grab it for this release.
Thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-09-01 11:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-01 20:52 [PATCH] btrfs: Use default subvolume as filesystem root Matwey V. Kornilov
2021-08-01 23:06 ` Qu Wenruo
2021-09-01 11:28   ` Matthias Brugger
2021-09-01 11:36     ` Tom Rini [this message]
2021-09-01 13:48       ` Matthias Brugger
2021-09-01 14:01         ` Qu Wenruo
2021-09-01 14:12 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210901113659.GX858@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=marek.behun@nic.cz \
    --cc=matthias.bgg@gmail.com \
    --cc=matwey.kornilov@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=wqu@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.