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: root@yeti:/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: root@yeti:/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 [EMAIL PROTECTED] 321-676-2923,x203 http://www.csihq.com Computer Science Innovations http://www.csihq.com/~mike My home page FAX 321-676-2355
df.patch
Description: Binary data