From: Karel Zak <kzak@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Another question on bind mounts without mtab
Date: Mon, 13 Jan 2014 09:48:52 +0100 [thread overview]
Message-ID: <20140113084852.GA14364@x2.net.home> (raw)
In-Reply-To: <52D005DC.1000809@ubuntu.com>
On Fri, Jan 10, 2014 at 09:38:20AM -0500, Phillip Susi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've had another question come up about bind mounts and the lack of
> mtab and I'm not sure how to answer it because it does seem a more
> important use case that has been lost than those previously discussed.
>
> If /dev/sda1 is mounted in /, and you bind mount /home/foo to /mnt,
> then there is no way to tell from the output of mount that it is in
> fact, the /home/foo directory of /dev/sda1 that is in /mnt. It looks
> like you just bind mounted the whole drive there, and the subdirectory
> path is lost.
See findmnt output, the /proc/self/mountinfo contains info about the
mounted filesystem directory (usually '/', but /home/foo in your
example).
Note that I'd like to learn people to use findmnt(8) rather mount
output. The mount(8) output is there mostly for backward
compatibility.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2014-01-13 8:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 14:38 Another question on bind mounts without mtab Phillip Susi
2014-01-13 8:48 ` Karel Zak [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=20140113084852.GA14364@x2.net.home \
--to=kzak@redhat.com \
--cc=psusi@ubuntu.com \
--cc=util-linux@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