[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
/proc/self/mounts?
* should gnulib's get_fs_usage() switch to reading
mountinfo?
* is it a gnulib thing to not filter the rootfs
entry?
* is it up to coreutils to filter out the rootfs
entry?
* should coreutils' df switch to reading mountinfo?
There are several possibilities here.
Jim?
Have a nice day,
Berny
- Hide rootfs filesystem in df, Robert Milasan, 2012/09/24
- RE: Hide rootfs filesystem in df, Voelker, Bernhard, 2012/09/24
- Re: Hide rootfs filesystem in df, Robert Milasan, 2012/09/24
- Re: Hide rootfs filesystem in df, Robert Milasan, 2012/09/24
- RE: Hide rootfs filesystem in df, Voelker, Bernhard, 2012/09/24
- Re: Hide rootfs filesystem in df, Andreas Schwab, 2012/09/24
- Re: Hide rootfs filesystem in df, Robert Milasan, 2012/09/24
- RE: Hide rootfs filesystem in df,
Voelker, Bernhard <=
- Re: Hide rootfs filesystem in df, Jim Meyering, 2012/09/26
Re: Hide rootfs filesystem in df, Philipp Thomas, 2012/09/24