summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/df.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/df.c b/src/df.c
index f53a0802a..a311f7550 100644
--- a/src/df.c
+++ b/src/df.c
@@ -213,6 +213,9 @@ show_dev (const char *disk, const char *mount_point, const char *fstype)
return;
}
+ if (fsu.fsu_blocks == 0 && !show_all_fs && !show_listed_fs)
+ return;
+
if (! disk)
disk = "-"; /* unknown */
@@ -258,8 +261,6 @@ show_dev (const char *disk, const char *mount_point, const char *fstype)
if (fsu.fsu_blocks == 0)
{
- if (!show_all_fs && !show_listed_fs)
- return;
blocks_used = 0;
fsu.fsu_bavail = 0;
blocks_percent_used = 0;