Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Dimitri John Ledkov <xnox@debian.org>
Cc: Chris Mason <clm@fb.com>, cwillu <cwillu@cwillu.com>,
	"kreijack@inwind.it" <kreijack@inwind.it>,
	linux-btrfs <linux-btrfs@vger.kernel.org>,
	Zygo Blaxell <zblaxell@furryterror.org>
Subject: Re: [RFC][PATCH v2] mount.btrfs helper
Date: Fri, 5 Dec 2014 17:41:44 +0100	[thread overview]
Message-ID: <20141205164144.GK9754@suse.cz> (raw)
In-Reply-To: <CANBHLUgkY5YkFqe48H=vsS4w2uZr+nU0NBhy8o88A=vv3-nHkQ@mail.gmail.com>

On Fri, Dec 05, 2014 at 04:01:37PM +0000, Dimitri John Ledkov wrote:
> On 5 December 2014 at 15:32, Chris Mason <clm@fb.com> wrote:
> > On Sun, Nov 30, 2014 at 5:57 PM, Dimitri John Ledkov <xnox@debian.org>
> > wrote:
> >>
> >> On 30 November 2014 at 22:31, cwillu <cwillu@cwillu.com> wrote:
> >>>
> >>>
> >>>  In ubuntu, the initfs runs a btrfs dev scan, which should catch
> >>>  anything that would be missed there.
> >>>
> >>
> >> I'm sorry, udev rule(s) is not sufficient in the initramfs-less case,
> >> as outlined.
> >>
> >> In case of booting with initramfs, indeed, both Debian & Ubuntu
> >> include snippets there to run btrfs scan.
> >
> >
> > In an initramfs-less system, the root filesystem mount is done by the
> > kernel, without calling any mount.btrfs.  The mount helper has all the same
> > problems that calling btrfs dev scan does, it's just being run by mount.
> >
> 
> Sure. in my initramfs-less system case the root filesystem was not
> btrfs. Simply there was a btrfs filesystem defined in /etc/fstab.

So you could add a 'btrfs dev scan' before the fstab is going to be
mounted. Either a local boot script or via some unit file. We're looking
for good reasons to justify the existence of the helper, but this is
still not enough IMHO. I can see the convenience to do it automatically,
but this assumes no udev available which is probably rare these days.

  reply	other threads:[~2014-12-05 16:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-30 17:43 [RFC][PATCH v2] mount.btrfs helper Goffredo Baroncelli
2014-11-30 22:11 ` Dimitri John Ledkov
2014-11-30 22:31   ` cwillu
2014-11-30 22:57     ` Dimitri John Ledkov
2014-11-30 23:27       ` cwillu
2014-12-05 15:32       ` Chris Mason
2014-12-05 16:01         ` Dimitri John Ledkov
2014-12-05 16:41           ` David Sterba [this message]
2014-12-05 18:15             ` Goffredo Baroncelli
2014-12-05 18:43               ` Chris Mason
2014-12-05 19:51                 ` Goffredo Baroncelli
2014-12-09 12:16                   ` David Sterba
2014-12-09 10:55                 ` David Sterba
2014-12-09 10:35           ` David Sterba
2014-12-04  2:09 ` Anand Jain
2014-12-04 17:58   ` Goffredo Baroncelli
2014-12-05  3:16     ` Anand Jain

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=20141205164144.GK9754@suse.cz \
    --to=dsterba@suse.cz \
    --cc=clm@fb.com \
    --cc=cwillu@cwillu.com \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=xnox@debian.org \
    --cc=zblaxell@furryterror.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox