summaryrefslogtreecommitdiff
path: root/bin/df
AgeCommit message (Collapse)Author
2022-08-09Sync usage with man page.wiz
2022-08-09Sort options, fix macro, add RCS Id.wiz
2022-08-08Add 4 new flags:kre
-b (from FreeBSD) - set blocksize to blocks (512 bytes) (overrides a contrary setting in BLOCKSIZE) -H (from FreeBSD and Linux): -h using SI units (powers of 10). Ugh. -N suppress the header line (except with -P which requires it). -f show only free space (or inodes) in a minimal format (implies -N) (that is, with one file[system] specified, print 1 number only) With -c, show only the total. Intended to be useful for scripting (aka, I needed it.) While here, improve the usage message (group options where they apply, there is no reason, for example, that -g should be shown differently to -k -m ..., and those options aren't at all useful with -G) Update the man page to match.
2021-11-29Set totals.f_frsize to DEV_BSIZE instead of totals.f_bsize so thatsimonb
addstat() uses an initialised value for total size calculations. Fixes core dump for "df -c".
2021-01-06df: bump man page dateginsbach
2021-01-03df: add grand total optionginsbach
Add a grand total option, -c, similar to the du(1) -c option. Adapted from the same option (-c) in FreeBSD df(1).
2020-08-21- Bump Size/Used/Avail from 10 to 12, and iUsed/iAvail from 8 to 10 for ↵ryo
double-digit terabyte storage. - set the field width to the optimal, if "-h" is specified. - if blocksize is greater than M or G, reduce the size field width.
2020-08-21field width of blocksize and inode can be changed by #defineryo
2019-09-23we don't need root anymore.christos
2019-09-22Add a new member to struct vfsstat and grow the unused memberschristos
The new member is caled f_mntfromlabel and it is the dkw_wname of the corresponding wedge. This is now used by df -W to display the mountpoint name as NAME=
2019-09-20file system police. Fix typo. Fix macro use.wiz
2019-09-18It is not just root, it is device read access (kre)christos
2019-09-18mention that -W needs root.christos
2019-09-18Print the wedge name with -W instead of mntfromchristos
2018-08-26-G cannot be specified alongside -i or -P.sevan
Heads up by <leot>
2018-08-26Match SYNOPSIS with usage()sevan
2017-07-03Remove workaround for ancient HTML generation code.wiz
2016-08-10Bump datesevan
Reminded by wiz@
2016-08-10df was there from v1.sevan
Confirmed from the TUHS & cat-v.org hosted copies of man pages.
2016-03-05Correct display of df(1) with the -i parameterkamil
Now the "Mounted on" column should be aligned with /entries. Patch by Michal Mazurek.
2015-11-12PR/50422: Robert Elz: df -G prints the wrong value for fragsize (+FIX)christos
For df -G, print the block and fragment size instead of the iosize and the blocksize. If we need to print the iosize, it should be done in a different field. Nevertheless printing the blocksize in the fragment size field is just wrong. XXX: pullup-6, pullup-7
2012-01-07use strspct.christos
2011-08-29Use the same column spacing for the -h output as with the normal output,gson
as the same header line format is used in both cases and it can't line up correctly with both of them otherwise.
2011-08-29No need to print internal state once debug is done.enami
2011-08-28- static/__deadchristos
- use strpct from libutil - fix off by one in format
2011-08-14Document non-literal formatschristos
2010-04-05\\ -> \ejoerg
2009-06-06block numbers are measured in f_frsize units. Make -P optionmlelstv
use this instead of f_bsize. Also account for reserved blocks like normal non-P output. Fixes PR bin/41541.
2009-02-14Default to WARNS=4 (except for rcp & ksh)lukem
2009-01-25sign-compare fix for amd64lukem
2009-01-18fix -Wsign-compare issueslukem
2008-07-20Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-05-26PR/38755: murray armfield: /bin posix programs missing setprogname and/orchristos
setlocale
2008-03-04sort options from anon ymouschristos
2008-03-04do the -g -G swap for real.christos
2008-03-04PR/36817: Zafer Aydogan: Don't use -g to implement the same named optionchristos
in solaris to display statvfs output, use -G instead. I researched this and all other implementations except Solaris (OS/X, FreeBSD, us before June 24, 2007) use -g to signify gigabytes. So revert to that. PR/38154: YAMAMOTO Takashi: df -P doesn't work without -k. Fix from Anon Ymous together with passing lint, and exiting with the right values.
2008-03-04restore whitespace between 'Filesystem' and 'blocks'.yamt
2007-12-22prtstat: PRIdMAX -> jd as suggested by Joerg Sonnenberger.yamt
2007-12-21don't cast 64bit values to u_long.yamt
2007-07-17kill MFSNAMELENchristos
2007-07-16Fix '-Ph' segfault; from Greg Woodschristos
2007-07-03spacing fixes from Geoff Wingchristos
2007-06-24PR/36541: Greg A. Woods: fix -P option, and add solaris -g option.christos
2007-01-28Improve wording of -a description. From FreeBSD via Zafer Aydogan.wiz
2006-09-04fix formatting of df -h; from Zafer.christos
2006-08-21-h and -[mgk] are mutually exclusive. Only use the last specified. [from zafer]christos
Use one variable instead of 3 flags to hold the scale, so that we don't have to reset each flag.
2006-03-17Handle malloc returning NULL.rumble
2006-01-13PR/23688: don't say we're printing in 1k-blocks if -h was also specified.elad
2005-11-18PR/32103: Zafer Aydogan: Fix references to obsolete fstatfs and getfsstatchristos
2005-06-26sprinkle a little const, and now everything compiles with WARNS=3christos