bug-coreutils
[Top][All Lists]
Advanced

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

bug#21011: df utility bug


From: Pádraig Brady
Subject: bug#21011: df utility bug
Date: Wed, 08 Jul 2015 16:45:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

tag 21011 notabug
close 21011
stop

On 08/07/15 09:39, erbenton wrote:
> Hi,
> The -x option of 'df' doesnt seem to work, when I exclude type sysfs it still 
> includes it. I was trying to get around this annoying error using the -x 
> option.
> e.g:
>> df
> df: ‘/sys/kernel/debug/tracing’: Permission denied
> Filesystem     1K-blocks     Used Available Use% Mounted on
> devtmpfs         4021028       16   4021012   1% /dev
> tmpfs            4034396      608   4033788   1% /dev/shm
> tmpfs            4034396     5488   4028908   1% /run
> /dev/sda3      237244096 37634248 187535508  17% /
> tmpfs            4034396        0   4034396   0% /sys/fs/cgroup
> tmpfs            4034396     5488   4028908   1% /var/run
> tmpfs            4034396     5488   4028908   1% /var/lock
> /dev/sda1         488613    85005    373861  19% /boot
> 
> So, i used this to find the "type"
>>df -T /sys
> Filesystem     Type  1K-blocks  Used Available Use% Mounted on
> sysfs          sysfs         0     0         0    - /sys
> 
> and this to try and exclude sysfs:
> 
>> df -x sysfs
> df: ‘/sys/kernel/debug/tracing’: Permission denied
> Filesystem     1K-blocks     Used Available Use% Mounted on
> devtmpfs         4021028       16   4021012   1% /dev
> tmpfs            4034396      608   4033788   1% /dev/shm
> tmpfs            4034396     5488   4028908   1% /run
> /dev/sda3      237244096 37634244 187535512  17% /
> tmpfs            4034396        0   4034396   0% /sys/fs/cgroup
> tmpfs            4034396     5488   4028908   1% /var/run
> tmpfs            4034396     5488   4028908   1% /var/lock
> /dev/sda1         488613    85005    373861  19% /b
> 
> But it doesnt work, it still includes sysfs

$ sudo df -T /sys/kernel/debug/tracing
Filesystem     Type    1K-blocks  Used Available Use% Mounted on
debugfs        debugfs         0     0         0    - /sys/kernel/debug

So try -x debugfs

cheers,
Pádraig.





reply via email to

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