On Wed, Nov 18, 2015 at 9:00 PM, Jarry <mr.ja...@gmail.com> wrote:
> On 10-Nov-15 14:22, Tom H wrote:
>> On Tue, Nov 10, 2015 at 12:32 AM, Mike Gilbert <flop...@gentoo.org> wrote:
>>>
>>> Can you try replacing /etc/mtab with a symlink to /proc/self/mounts to
>>> see if it makes any difference? That triggers different code paths in
>>> several programs.
>>
>> Is "/" shown when you run "df -a"? If it's shown, then there's a bug
>> in coreutils (as long as they accept a bug on a system where mtab
>> isn't a symlink) because, AFAIR, "df" should show the mount with the
>> shortest mount path if a filesystem's mounted more than once.
>
> vs5-dns ~ # df -a
> Filesystem    1K-blocks    Used Available Use% Mounted on
> /dev/sda2             -       -         -    - /
<snip>
> /etc/bind             -       -         -    - /chroot/dns/etc/bind
> /var/bind             -       -         -    - /chroot/dns/var/bind
> /var/log/named 10138552 2300032   7300460  24% /chroot/dns/var/log/named
>
> So there *is* /, but strangely it has no size. But it suddenly does
> have its proper size as soon as I stop bind running:
>
> vs5-dns ~ # df -a
> Filesystem     1K-blocks    Used Available Use% Mounted on
> /dev/sda2      10138552 2300024   7300468  24% /
<snip>

It must be a bug that it's "/var/log/named" that shows the size of
"/". Most likely same bug as not showing "/" when simply running "df".

Reply via email to