1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00

(show_dev): Move check for 0-block device (and return if

not e.g., -a) back up to precede first print stmt.
This commit is contained in:
Jim Meyering
1998-01-01 21:30:00 +00:00
parent cb5e8a14c2
commit 2c2fa642c4
+3 -2
View File
@@ -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;