[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hide rootfs filesystem in df

From: Voelker, Bernhard
Subject: RE: Hide rootfs filesystem in df
Date: Mon, 24 Sep 2012 15:01:36 +0000

Robert Milasan wrote:
> That has been fixed, at least in 12.1 and 12.2 (even if it's not fixed
> there is not rootfs entry in /proc/self/mountinfo):

I know.
The problem is that mount from util-linux has it's own
wrapper for the mount entries which is using mountinfo
while coreutils' df is just calling get_fs_usage() from
gnulib which in turn is reading /etc/mtab - which is
a symlink to /proc/self/mounts in this case.
And that file has both entries.

So the question is:
* is it a kernel thing to not expose rootfs to
* should gnulib's get_fs_usage() switch to reading
* is it a gnulib thing to not filter the rootfs
* is it up to coreutils to filter out the rootfs
* should coreutils' df switch to reading mountinfo?

There are several possibilities here.


Have a nice day,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]