[systemd-devel] arch linux container filesystems

Lennart Poettering lennart at poettering.net
Fri Jun 20 04:48:32 PDT 2014


On Mon, 16.06.14 17:37, Robin Becker (robin at reportlab.com) wrote:

> 
> On 16/06/2014 14:00, Dave Reisner wrote:
> >On Mon, Jun 16, 2014 at 01:01:31PM +0100, Robin Becker wrote:
> ............
> >>
> >>Why do I have all the file system duplicates?
> >
> >You don't -- df doesn't understand namespaces. You should use a tool
> >which reads from /proc/self/mountinfo instead of /etc/mtab, e.g.
> >findmnt. If you want df-like output from findmnt, use 'findmnt -vD'.
> >
> >
> OK thanks; pity we have to abandon old tools and learn a lot of red
> hat stuff. Price of progress I guess.

well, findmnt is neither "red hat stuff", it's used all over the
distributions. And you shouldn't accept that "df" can't deal with mount
points that reference out-of-namespace sources. File a bug against
coreutils, they really should make sure they properly handle the Linux
mount logic in that area.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list