All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: what determines what /dev/ is mounted?
Date: Fri, 18 Dec 2020 14:42:50 -0700	[thread overview]
Message-ID: <CAJCQCtQiaAvNGKUiz28jBiw67rSJWp+Ei2uGet2F=xyaziu0nQ@mail.gmail.com> (raw)

When I have a 2-device btrfs:

devid 1 = /dev/vdb1
devid 2 = /dev/vdc1

Regardless of the mount command, df and /proc/mounts shows /dev/vdb1 is mounted.

If I flip the backing assignments in qemu, such that:

devid 2 = /dev/vdb1
devid 1 = /dev/vdc1

Now, /dev/vdc1 is shown as mounted by df and /proc/mounts.

But this isn't scientific. Is there a predictable logic? Is it always
the lowest devid?




-- 
Chris Murphy

             reply	other threads:[~2020-12-18 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18 21:42 Chris Murphy [this message]
2020-12-19  6:51 ` what determines what /dev/ is mounted? Andrei Borzenkov

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='CAJCQCtQiaAvNGKUiz28jBiw67rSJWp+Ei2uGet2F=xyaziu0nQ@mail.gmail.com' \
    --to=lists@colorremedies.com \
    --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 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.