From: Chris Mason <chris.mason@oracle.com>
To: David Zeuthen <zeuthen@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs and /proc/self/mountinfo
Date: Mon, 13 Apr 2009 09:40:51 -0400 [thread overview]
Message-ID: <1239630051.24841.12.camel@think.oraclecorp.com> (raw)
In-Reply-To: <7b13a0f80904120735r41736455hb7e226ab8ad30bd7@mail.gmail.com>
On Sun, 2009-04-12 at 10:35 -0400, David Zeuthen wrote:
> Hi,
>
> I have a question about how btrfs is supposed to work with
> /proc/self/mountinfo. It appears that the dev_t isn't matching what
> one would expect when mounting a btrfs filesystem - here's /dev/sdb2
> mounted at /media/usb-fedora
>
> # cat /proc/self/mountinfo |grep btrfs
> 17 19 0:19 / /media/usb-fedora rw,nosuid,nodev,relatime - btrfs /dev/sdb2 rw
>
Yes, this is because I switched to an anonymous super to remove
restrictions about which devices could be removed from a mounted
filesystem.
Today it is possible to do something like this:
mkfs.ext3 /dev/sdb
mkfs.ext3 /dev/sdc
mount /dev/sdb /mnt
mount /dev/sdc /mnt
Which gives me this in mountinfo:
29 14 8:16 / /mnt rw - ext3 /dev/sdb rw,errors=continue,data=ordered
31 29 8:32 / /mnt rw - ext3 /dev/sdc rw,errors=continue,data=ordered
So, applications can already see duplicate device entries for the same
mount point. Do they deal with that today? I'm not sure I'll be able
to get control over the dev_ts mountinfo spits out just for btrfs, but
we can always float a patch.
Otherwise, we'll have to use the sysfs goo Kay is working on.
-chris
prev parent reply other threads:[~2009-04-13 13:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 14:35 btrfs and /proc/self/mountinfo David Zeuthen
2009-04-12 19:01 ` Kay Sievers
2009-04-12 21:08 ` David Zeuthen
2009-04-12 23:19 ` Oliver Mattos
2009-04-13 13:40 ` Chris Mason [this message]
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=1239630051.24841.12.camel@think.oraclecorp.com \
--to=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=zeuthen@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox