coreutils
[Top][All Lists]
Advanced

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

Re: Hide rootfs filesystem in df


From: Bernhard Voelker
Subject: Re: Hide rootfs filesystem in df
Date: Mon, 03 Dec 2012 02:25:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

CC'ed Philipp (because the patch is already
on the way to openSUSE:Factory).

On 11/29/2012 08:50 AM, Bernhard Voelker wrote:
> Hi Jim,
> 
> as Robert wrote, it's the easiest way to fix it.
> [...]
> So I'm 60:40 for adding it.

Unfortunately, it can't be added like this:

>>> +  if (STRNCMP_LIT (fstype, "rootfs") == 0)
>>> +    return;
>>> +

If fstype is NULL - which is the case e.g. for
"df --total" -,then STRNCMP_LIT dumps core.
The fix is to test fstype against NULL.

I'm still thinking about how to combine "hide rootfs"
with "hide duplicates" (from Ondrej), but I've not
found an elegant solution yet.

Have a nice day,
Berny



reply via email to

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