summaryrefslogtreecommitdiffstats
path: root/bin/df
Commit message (Collapse)AuthorAgeFilesLines
* Be a little bit more correct WRT counting numbers vs. integer numbers.obrien2003-09-131-10/+10
|
* Get this area compiling with the highest WARNS= that it works with.markm2003-06-131-4/+3
| | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386
* Catch up with revs 1.49-1.50 of df.c: don't mention -t in the BUGS sectionbde2003-06-031-3/+1
| | | | since it has been fixed.
* Fixed exit code in previous commit. "var++" to set a flag to nonzerobde2003-06-031-5/+9
| | | | | | | | | | | | | | | | is a style bug at best. When the variable isn't a flag, it potentially overflows after a large number of settings. Here the number of settings is limited by ARG_MAX, but the variable is the exit code so it became bogus after the second setting and effectively overflowed to 0 after approx. 128 settings. Fixed some style bugs involving comments in and near previous commit. Clarification of previous commit message: df -t didn't give undefined behaviour, and the behaviour used to conform perfectly with the man page, since the buggy behaviour is documented in the BUGS section. -t just worked when no files or file systems were specified, and was just ignored if a file or file system was specified.
* From the df man page:jkh2003-06-021-0/+9
| | | | | | | | | | -t Only print out statistics for filesystems of the specified types. Make the behavior of df(1) conform to its man page (behavior is otherwise undefined). Submitted by: Rob Braun <bbraun@apple.com> Obtained from: Apple
* df(1) and ls(1) print units in 'four or fewer' not 'three or less'.trhodes2003-05-061-2/+2
| | | | | PR: 35523 Submitted by: Tomas Svensson <tsn@gbdev.net>
* WARNS cleaning for the Alpha. On alpha, size_t is a long, and itmarkm2003-05-031-13/+17
| | | | | solicits a warning when used for the '*' in printf("%*d"). Cast to u_int for universal use.
* Fix a shedload of warnings, some memory leaks and clean up WARNSmarkm2003-05-031-39/+61
| | | | and lint. This is now WARNS=9, std=c99 clean on i386.
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Back out rev 1.44; getbsize(3)'s original interface has been restored.mike2002-12-301-4/+3
| | | | Approved by: markm
* Fix for changed getbsize arg type.markm2002-10-231-3/+4
|
* Fix 'SYNOPSIS' and 'usage'trhodes2002-08-262-2/+2
|
* s/filesystem/file system/ as discussed on -developerstrhodes2002-08-212-22/+22
|
* - Introduce a new struct xvfsconf, the userland version of struct vfsconf.mux2002-08-101-12/+21
| | | | | | | | | | | | | | | | | | | | | | | - Make getvfsbyname() take a struct xvfsconf *. - Convert several consumers of getvfsbyname() to use struct xvfsconf. - Correct the getvfsbyname.3 manpage. - Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the kernel, and rewrite getvfsbyname() to use this instead of the weird existing API. - Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist sysctl. - Convert a vfsload() call in nfsiod.c to kldload() and remove the useless vfsisloadable() and endvfsent() calls. - Add a warning printf() in vfs_sysctl() to tell people they are using an old userland. After these changes, it's possible to modify struct vfsconf without breaking the binary compatibility. Please note that these changes don't break this compatibility either. When bp will have updated mount_smbfs(8) with the patch I sent him, there will be no more consumers of the {set,get,end}vfsent(), vfsisloadable() and vfsload() API, and I will promptly delete it.
* Consistently use __FBSDIDobrien2002-06-301-3/+2
|
* Unconditionally update the maximum field width statistics when weiedowse2002-05-181-5/+3
| | | | | | | refetch the filesystem information in MNT_WAIT mode. This avoids incorrect column alignment that sometimes occurs with NFS filesystems. Submitted by: Ian <freebsd@damnhippie.dyndns.org>
* Remove the private code for reading UFS superblocks, this does not belongphk2002-05-122-110/+36
| | | | | | | | | | | | | | | | in df(1) when we have multiple filesystem types, and the complications of handling UFS2 pushes this over the edge. Use the .../mount/extern.h to get prototypes of the functions we borrow from there. Constify things to match. (why aren't these functions in a lib anyway ?) Make everything static and set WARNS?=5. The way the "df diskdevice" thing works for unmounted diskdevices is not very general. Sponsored by: DARPA & NAI Labs.
* Use `The .Nm utility'charnier2002-04-161-1/+3
|
* Make the columns in the output of df(1) line up, even for very largeiedowse2002-03-261-39/+106
| | | | | | | | filesystems. We now keep track of the maximum width required for every variable-width field instead of just the first one. PR: bin/15510 MFC after: 1 week
* Warnings fixes inspired by lint, a commercial lint and WARNS=4.markm2002-02-221-5/+4
|
* o __P has been reovedimp2002-02-021-41/+23
| | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
* Make ``df -l'' work when no network filesystems are loaded.ru2001-12-191-2/+4
| | | | PR: bin/32397
* Do not dot terminate errx() stringscharnier2001-12-111-1/+1
|
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyobrien2001-12-041-2/+0
| | | | | | set WARNS=0. Reviewed by: mike
* Remove a misplaced space.obrien2001-08-011-1/+1
|
* Fix style bugs introduced by rev 1.28. No functional changes.wollman2001-07-161-11/+12
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* WARNS= -> WARNS?=dd2001-06-221-1/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Add parens to get the cast that was meant in previous commit.nectar2001-06-051-2/+2
| | | | | While we're at it, this file seems to prefer `unsigned int' over `u_int', so go with that.
* Wrong. The size of size_t is *not* the same as the size of an integer.mjacob2001-06-051-2/+4
| | | | MFC after: 2 weeks
* Added the -l option to df, so to be compatable with other unicies.pirzyk2001-06-042-4/+59
| | | | | | PR: bin/27240 Reviewed by: GAWollman MFC after: 2 weeks
* Remove vestiges of MFS.ru2001-06-011-2/+2
|
* BDECFLAGS cleanup (modulo long long issues). Add WARNS. Tested on alpha.kris2001-05-202-14/+17
| | | | Reviewed by: the great man himself (except alpha cleanups)
* Fix operation of df on unmounted filesystems, and add the ability to run dfkris2001-05-091-4/+38
| | | | | | on unmounted non-UFS filesystem using '-t' Submitted by: bde
* GC some dead code relating to running df on unmounted block devices,kris2001-05-082-37/+1
| | | | | | | | and remove the setgid operator bit from the installed binary: if you want to view free disk space on an unmounted device, you should have read permissions to access it. Reviewed by: phk
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Add -g for gigabyte sizes.jwd2000-06-032-1/+10
| | | | Approved by: jkh
* Fix miscellaneous mdoc macro argument limit infringements.sheldonh2000-05-091-1/+4
| | | | | PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
* Fixed LDADD. Using ${LIBM} instead of -lm gave the wrong libm in mostbde2000-03-271-3/+4
| | | | | | | cases and broke the world in some cases. Fixed some style bugs (the usual ones for DPADD and LDADD, misplacement of DPADD and LDADD, and misplacement of $FreeBSD$).
* add human readable output (-h and -H)mharo1999-12-153-12/+158
| | | | | | | | | | Obtained from: parts of human readable code from OpenBSD Reviewed by: obrien add POSIX, byte and megabyte block size ouput flags PR: 13579 (POSIX flag) Submitted by: Mike Meyer <mwm@phone.net>
* Most modern OSs have the ability to flag certain mounts as ones tojulian1999-11-012-6/+14
| | | | | | | | | | | | | | be ignored by default by the df(1) program. This is used mostly to avoid stat()-ing entries that do not represent "real" disk mount points (such as those made by an automounter such as amd.) It is also useful not to have to stat() these entries because it takes longer to report them that for other file systems, being that these mount points are served by a user-level file server and resulting in several context switches. Worse, if the automounter is down unexpectedly, a causal df(1) will hang in an interruptible way. PR: kern/9764 Submitted by: Erez Zadok <ezk@cs.columbia.edu>
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Don't suggest sysctl(8) as a means for discovering what filesystem typessheldonh1999-08-261-8/+5
| | | | | | are available; suggest lsvfs(1) instead. Reported by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Cleaning out old stuff from one of my source trees:peter1998-12-161-5/+14
| | | | use mkdtemp() rather than mktemp() and fix a trivial memory leak.
* .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENTphk1998-05-131-2/+2
| | | | | | PR: 6599 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
* Correct use of .Nm.charnier1998-05-131-5/+5
|
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-2/+2
| | | | the default.
* Style police: keep a variable list in alphabetical order, and addjoerg1997-10-131-5/+5
| | | | | | pointless paren's to return statements. Nitpicked by: bde :)
OpenPOWER on IntegriCloud