1 |
On Wed, Nov 18, 2015 at 9:00 PM, Jarry <mr.jarry@×××××.com> wrote: |
2 |
> On 10-Nov-15 14:22, Tom H wrote: |
3 |
>> On Tue, Nov 10, 2015 at 12:32 AM, Mike Gilbert <floppym@g.o> wrote: |
4 |
>>> |
5 |
>>> Can you try replacing /etc/mtab with a symlink to /proc/self/mounts to |
6 |
>>> see if it makes any difference? That triggers different code paths in |
7 |
>>> several programs. |
8 |
>> |
9 |
>> Is "/" shown when you run "df -a"? If it's shown, then there's a bug |
10 |
>> in coreutils (as long as they accept a bug on a system where mtab |
11 |
>> isn't a symlink) because, AFAIR, "df" should show the mount with the |
12 |
>> shortest mount path if a filesystem's mounted more than once. |
13 |
> |
14 |
> vs5-dns ~ # df -a |
15 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
16 |
> /dev/sda2 - - - - / |
17 |
<snip> |
18 |
> /etc/bind - - - - /chroot/dns/etc/bind |
19 |
> /var/bind - - - - /chroot/dns/var/bind |
20 |
> /var/log/named 10138552 2300032 7300460 24% /chroot/dns/var/log/named |
21 |
> |
22 |
> So there *is* /, but strangely it has no size. But it suddenly does |
23 |
> have its proper size as soon as I stop bind running: |
24 |
> |
25 |
> vs5-dns ~ # df -a |
26 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
27 |
> /dev/sda2 10138552 2300024 7300468 24% / |
28 |
<snip> |
29 |
|
30 |
It must be a bug that it's "/var/log/named" that shows the size of |
31 |
"/". Most likely same bug as not showing "/" when simply running "df". |