bug-fileutils
[Top][All Lists]
Advanced

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

df format


From: Mike Black
Subject: df format
Date: Mon, 4 Mar 2002 08:20:59 -0500

With the ability for 2TB arrays in Linux can we changed the df format so the
format is consitent when 2TB arrays are in the list -- we just need 10
digits instead of 9?

(sent as attachment also)
*** df.c.orig Mon Mar  4 08:17:38 2002
--- df.c Mon Mar  4 08:16:42 2002
***************
*** 323,329 ****
      }
    else
      {
!       width = output_block_size < 0 ? 5 : 9;
        use_width = posix_format ? 8 : 4;
        input_units = fsu.fsu_blocksize;
        output_units = output_block_size;
--- 323,329 ----
      }
    else
      {
!       width = output_block_size < 0 ? 5 : 10;
        use_width = posix_format ? 8 : 4;
        input_units = fsu.fsu_blocksize;
        output_units = output_block_size;


Before:
address@hidden:/root# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md0              38468820  20872124  15642568  58% /
medusa:/usr2         107095288  37149040  68871024  36% /usr2
medusa:/usr3          26545312  16378464   9900336  63% /usr3
picard:/              40316216  31614760   8701456  79% /picard
tmpfs                  1030960         0   1030960   0% /dev/shm
/dev/md4             216053784 192890428  20998452  91% /usr5
/dev/md3              96920716  91748368   4195440  96% /mnt
/dev/md6             1949323256   6067200 1923753808   1% /usr6

After:

address@hidden:/root# /picard//usr/src/util/admin/fileutils-4.1/src/df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md0               38468820   20872124   15642568  58% /
medusa:/usr2          107095288   37149040   68871024  36% /usr2
medusa:/usr3           26545312   16378464    9900336  63% /usr3
picard:/               40316216   31615896    8700320  79% /picard
tmpfs                   1030960          0    1030960   0% /dev/shm
/dev/md4              216053784  192890428   20998452  91% /usr5
/dev/md3               96920716   91748368    4195440  96% /mnt
/dev/md6             1949323256    8992216 1920828792   1% /usr6


________________________________________
Michael D. Black   Principal Engineer
address@hidden  321-676-2923,x203
http://www.csihq.com  Computer Science Innovations
http://www.csihq.com/~mike  My home page
FAX 321-676-2355

Attachment: df.patch
Description: Binary data


reply via email to

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