From: Bernhard Voelker <mail@bernhard-voelker.de>
To: Matt Burgess <matthew@linuxfromscratch.org>
Cc: util-linux@vger.kernel.org
Subject: Re: Discrepancies between real and symlinked mtab
Date: Wed, 31 Oct 2012 08:59:51 +0100 [thread overview]
Message-ID: <5090DA77.9060408@bernhard-voelker.de> (raw)
In-Reply-To: <1351638239.1651.13.camel@kyoto.localdomain>
Hi Matt,
On 10/31/2012 12:03 AM, Matt Burgess wrote:
> Consider trying to answer the question "What partition is mounted
> on /" (it happens to be /dev/sda3 in this example), when /etc/mtab is a
> symlink pointing to /proc/mounts:
I'll only answer for df here because it is not part of util-linux,
but rather in the coreutils package.
> 2) df(1)
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> rootfs 20642428 1576788 18017064 9% /
> /dev/root 20642428 1576788 18017064 9% /
>
> Uh-oh - now I appear to have 2 filesystems mounted at '/' (yes, I know
> you can tell by the same stats that it is in fact the same FS). What is
> this rootfs entry?
That rootfs entry comes from early boot time when '/' is mounted on
itself.
BTW there is already a discussion on the coreutils ML about this:
http://www.mail-archive.com/coreutils@gnu.org/msg03582.html
> As all 3 utils show the same issue, I assume this is something to do
> with libblkid?
No, df doesn't use libblkid. It uses gnulib's function
read_file_system_list ()
to read the mount list.
Have a nice day,
Berny
next prev parent reply other threads:[~2012-10-31 7:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 23:03 Discrepancies between real and symlinked mtab Matt Burgess
2012-10-31 7:59 ` Bernhard Voelker [this message]
2012-10-31 12:24 ` Karel Zak
2012-10-31 12:46 ` Kay Sievers
2012-10-31 14:33 ` Karel Zak
2012-11-08 13:48 ` Karel Zak
2012-11-08 13:54 ` Matthew Burgess
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=5090DA77.9060408@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=matthew@linuxfromscratch.org \
--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 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.