bug-coreutils
[Top][All Lists]
Advanced

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

Re: should df looked at /proc/mounts on linux?


From: Mike Frysinger
Subject: Re: should df looked at /proc/mounts on linux?
Date: Sun, 13 Apr 2008 19:11:40 -0400
User-agent: KMail/1.9.7

On Sunday 13 April 2008, Marty Leisner wrote:
> I had a "head-scratching" incident when dealing with applications
> which called umount(2) and then trying to run df to see what is done.
> /proc/mounts is the kernels idea of what's mounted, /etc/mtab is manipulted
> in user space.
>
> df uses calls with look at /etc/mtab.
>
> I've heard of a technique to link /etc/mtab to /proc/mounts, which
> seems like a good idea (I've never seen a distribution which does this).

that's because more information is maintained in /etc/mtab than /proc/mounts 
at the moment.  the only time the two typically get linked is for embedded 
systems at the moment.  there is work to remedy this situation, but until 
that point, distros cannot do a symlink.

the information in question though would not affect df.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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