linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "G. Richard Bellamy" <rbellamy@pteradigm.com>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: mlocate/updatedb and btrfs subvolume mounts
Date: Mon, 4 May 2015 16:40:08 -0700	[thread overview]
Message-ID: <CADw2B2NuyxorUUJvpwUuPF78adrey9OORgviWg5NWx56cknOdg@mail.gmail.com> (raw)
In-Reply-To: <pan$3396c$51a072b0$71501292$8af8c3ee@cox.net>

On Sun, Apr 12, 2015 at 9:12 PM, Duncan <1i5t5.duncan@cox.net> wrote:
>
> Zygo Blaxell posted on Sun, 12 Apr 2015 16:11:07 -0400 as excerpted:
>
> > Since these are simple binds (not rbinds), they don't see any other
> > filesystems, period.  They do see btrfs subvolumes, though.
>
> Tho... for systemd users...
>
> Do note that systemd plays with the kernel's shared-subtree "private"
> default, switching it to shared for /.

I like to think I know a bit about a thing or two. I've read both Zygo
and Duncan's probably cogent responses.

My brain hurts, and I am just not getting it.

If I am to understand correctly, and specific to my OP, the problem
with updatedb et al. on my system is that /, /home, /var, /opt and
/var/lib/libvirt are all subvolume mounts - which appear as bind
mounts. Thus the PRUNE_BIND_MOUNTS prunes ALL mounts, and updatedb
sees nothing.

Everything else is a blur when we start talking about "mount --bind /
/.binds/root"

Oh wait, maybe I get it now...

By running "mount --bind / /.binds/root" and running updatedb in
"/.binds/root" while still allowing it to see binds, I am certain to
get a an mlocate db, and it won't ever see anything outside that
explicit hierarchy.

Something like that?

-rb

  reply	other threads:[~2015-05-04 23:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 20:07 mlocate/updatedb and btrfs subvolume mounts G. Richard Bellamy
2015-04-09 18:06 ` G. Richard Bellamy
2015-04-12 20:11 ` Zygo Blaxell
2015-04-13  4:12   ` Duncan
2015-05-04 23:40     ` G. Richard Bellamy [this message]
2015-05-05  2:59       ` Zygo Blaxell

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=CADw2B2NuyxorUUJvpwUuPF78adrey9OORgviWg5NWx56cknOdg@mail.gmail.com \
    --to=rbellamy@pteradigm.com \
    --cc=1i5t5.duncan@cox.net \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).