*** df.c.orig Mon Mar 4 08:17:38 2002 --- df.c Mon Mar 4 10:55:24 2002 *************** *** 161,167 **** else if (output_block_size < 0) printf (_(" Size Used Avail Use%%")); else if (posix_format) ! printf (_(" %4d-blocks Used Available Capacity"), output_block_size); else { char buf[LONGEST_HUMAN_READABLE + 1]; --- 161,167 ---- else if (output_block_size < 0) printf (_(" Size Used Avail Use%%")); else if (posix_format) ! printf (_(" %4d-blocks Used Available Capacity"), output_block_size); else { char buf[LONGEST_HUMAN_READABLE + 1]; *************** *** 172,178 **** if (3 <= plen && strncmp (p + plen - 3, ".0", 2) == 0) strcpy (p + plen - 3, p + plen - 1);
! printf (_(" %4s-blocks Used Available Use%%"), p); } printf (_(" Mounted on\n")); --- 172,178 ---- if (3 <= plen && strncmp (p + plen - 3, ".0", 2) == 0) strcpy (p + plen - 3, p + plen - 1); ! printf (_(" %4s-blocks Used Available Use%%"), p); } printf (_(" Mounted on\n")); *************** *** 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; ----- Original Message ----- From: "Matt Schalit" <[EMAIL PROTECTED]> To: "Mike Black" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 3:54 PM Subject: Re: df format > Mike Black wrote: > > 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? > > > [snip] > > > > Before: > > Filesystem 1k-blocks Used Available Use% Mounted on > > /dev/md0 38468820 20872124 15642568 58% / > [snip] > > > > After: > > Filesystem 1k-blocks Used Available Use% Mounted on > > /dev/md0 38468820 20872124 15642568 58% / > > medusa:/usr2 107095288 37149040 68871024 36% /usr2 > [snip] > > Hi Mike, > It looks like you didn't adjust the position of the headers. > They are all out of alignment in your 'after' example. As there's > plenty of room in the output, why not fix the header spacing, too, > and resubmit you patch? Jim and Bob and the others may find that > a bit more appealing. > > Regards, > Matthew
df.patch
Description: Binary data