CVS log for src/bin/df/df.c
Up to [FreeBSD] / src / bin / df
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.74.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 9 09:20:50 2012 UTC (26 hours, 8 minutes ago) by bapt
Branches: RELENG_8
Diff to: previous 1.74.2.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.2: +27 -26 lines
SVN rev 231261 on 2012-02-09 09:20:50Z by bapt MFH r226502,r226503: factor out the common code and fix two display bugs Approved by: des (mentor)
Revision 1.75.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 9 09:20:34 2012 UTC (26 hours, 8 minutes ago) by bapt
Branches: RELENG_9
Diff to: previous 1.75.2.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.2.1: +27 -26 lines
SVN rev 231260 on 2012-02-09 09:20:34Z by bapt MFH r226502,r226503: factor out the common code and fix two display bugs Approved by: des (mentor)
Revision 1.75.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.75.2.1: preferred, colored; next MAIN 1.75.2.2: preferred, colored
Changes since revision 1.75.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Oct 18 08:18:26 2011 UTC (3 months, 3 weeks ago) by des
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +27 -26 lines
SVN rev 226502 on 2011-10-18 08:18:26Z by des Simplify df(1) by factoring out most of the common code: - In the argc == 0 case, just populate the mount list as before, but do not calculate widths, update totals or print anything. - In the argv > 0 case, collect information about the requested file systems and store it in the mount list, but do not calculate widths, update totals or print anything. - In either case, once all the information has been collected, iterate once through the mount list to calculate widths and totals, then once more to print everything. This also fixes two bugs: firstly, column widths were not calculated correctly if more than one file system was specified on the command line; and secondly, file systems with MNT_IGNORE were included in the totals even if -a was not specified. Noticed by: Paul Schenkeveld MFC after: 3 weeks
Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.71.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 24 10:45:41 2011 UTC (11 months, 2 weeks ago) by brucec
Branches: RELENG_7
Diff to: previous 1.71.2.1: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.2.1: +1 -1 lines
SVN rev 218993 on 2011-02-24 10:45:41Z by brucec MFC r218909: Fix typos - remove duplicate "the". PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com>
Revision 1.74.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 24 10:23:22 2011 UTC (11 months, 2 weeks ago) by brucec
Branches: RELENG_8
Diff to: previous 1.74.2.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.2.1: +1 -1 lines
SVN rev 218992 on 2011-02-24 10:23:22Z by brucec MFC r218909: Fix typos - remove duplicate "the". PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com>
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Feb 21 09:01:34 2011 UTC (11 months, 2 weeks ago) by brucec
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +1 -1 lines
SVN rev 218909 on 2011-02-21 09:01:34Z by brucec Fix typos - remove duplicate "the". PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
Revision 1.71.2.1.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.71.2.1: preferred, colored; next MAIN 1.71.2.2: preferred, colored
Changes since revision 1.71.2.1: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.74.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.2.2: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.74.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.2.2: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.71.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.71.2.1: preferred, colored; next MAIN 1.71.2.2: preferred, colored
Changes since revision 1.71.2.1: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.74.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.74.2.1: preferred, colored; next MAIN 1.74.2.2: preferred, colored
Changes since revision 1.74.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 19 21:33:09 2009 UTC (2 years, 5 months ago) by simon
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +30 -4 lines
SVN rev 196394 on 2009-08-19 21:33:09Z by simon MFC r193629: Make "human-readable" (-H/-h) output also "humanize" inode counts. Base 10 is always used for the inode counts as I could not think of any reason base 2 inode counts would be useful. Minor mdoc markup fix to df(1) while here anyway.
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Jun 23 23:30:56 2009 UTC (2 years, 7 months ago) by delphij
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +1 -1 lines
SVN rev 194795 on 2009-06-23 23:30:56Z by delphij Staticify internal routines.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Jun 7 09:06:21 2009 UTC (2 years, 8 months ago) by simon
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +30 -4 lines
SVN rev 193629 on 2009-06-07 09:06:21Z by simon Make "human-readable" (-H/-h) output also "humanize" inode counts. Base 10 is always used for the inode counts as I could not think of any reason base 2 inode counts would be useful. Minor mdoc markup fix to df(1) while here anyway. MFC after: 3 weeks
Revision 1.71.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.71.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Nov 23 13:03:44 2008 UTC (3 years, 2 months ago) by pjd
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +15 -5 lines
SVN rev 185200 on 2008-11-23 13:03:44Z by pjd Implement -T option as found in Linux df(1). When given, file system type will be included in output. Reviewed and tested by: keramida MFC after: 2 weeks
Revision 1.64.2.2.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.64.2.2: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.2: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Jul 4 00:00:37 2007 UTC (4 years, 7 months ago) by scf
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_2, RELENG_7_1, RELENG_7
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -4 lines
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue May 1 16:02:44 2007 UTC (4 years, 9 months ago) by ache
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
Back out all POSIXified *env() changes. Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Apr 30 04:29:17 2007 UTC (4 years, 9 months ago) by ache
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
Eliminate error with -W* strict flags and make putenv() calls conforming to standard in the same way as f.e. gcc internal portable code does.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Apr 6 15:36:43 2007 UTC (4 years, 10 months ago) by kan
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +2 -2 lines
getblocksize expects pointer to long as a second argument, not a pointer to u_long.
Revision 1.64.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 17 02:10:14 2007 UTC (4 years, 10 months ago) by will
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Branch point for: RELENG_6_4
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.1: +4 -1 lines
MFC: r1.67: Make error messages regarding -t and -l consistent.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Mar 8 06:10:17 2007 UTC (4 years, 11 months ago) by will
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -1 lines
Fix a bug where the mutual exclusivity of the -l and -t options is not recognized properly if -l is specified first. PR: bin/105721 MFC after: 1 week
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 20 02:19:09 2007 UTC (5 years ago) by csjp
Branches: RELENG_6
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +11 -2 lines
MFC df.c revision 1.66 Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Sep 20 20:55:02 2006 UTC (5 years, 4 months ago) by csjp
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +11 -2 lines
Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly. To quote the specification: "When both the -k and -P options are specified, the following header line shall be written (in the POSIX locale): "Filesystem 1024-blocks Used Available Capacity Mounted on\n" - If -P has been specified, check to make sure that -k has not already been specified, if so, simply break instead of clobbering the previous blocksize - Use 1024 instead of 1k to make the header POSIX compliant Reported by: Andriy Gapon Discussed with: bde, ru MFC after: 1 week
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Aug 20 06:32:40 2006 UTC (5 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Prefer strlcpy to strncpy. In one case, this saves us from re-zeroing data that's alreday 0. In another, it saves us from zeroing data that will be overwritten again.
Revision 1.23.2.11: download - view: text, markup, annotated - select for diffs
Fri Jan 21 01:09:04 2005 UTC (7 years ago) by peter
Branches: RELENG_4
Diff to: previous 1.23.2.10: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.10: +22 -15 lines
Partial backport of 64 bit filesystem space code. In spite of the bugs in the kernel NFS code, df itself was broken. It tries to re-factor the statfs blocks / blocksize into whatever the user requested. Thus, it must be able to report >2TB file systems correctly, which means it must deal with 64 bit block counts.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jan 10 08:39:21 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -1 lines
/*- or .\"- or #- to begin license clauses.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jul 20 18:24:47 2004 UTC (7 years, 6 months ago) by csjp
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +15 -5 lines
Currently if a mount point is not accessible by the calling user, invalid information will be printed if the -t flag is specified. $ df -t ufs Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 495726 139944 316124 31% / /dev/ad0s1e 253678 6438 226946 3% /tmp /dev/ad0s1f 56206340 13594248 38115586 26% /usr /dev/ad0s1d 694126 19812 618784 3% /var /dev/ad0s1d 694126 19812 618784 3% /var $ Note that the mount point which is not accessible shows up as the previous file system that was printed. The reason for this is that df -t will call statfs(2) on the pathname supplied by getfsstat(2). This is done to refresh the file system statistics in the event that a previous file system had a long delay in providing its stats. This change affects the df utility in the following ways: o Teach df has to deal with statfs(2) failing. If statfs(2) fails, fall back on the possibly stale stats provided by the initial call to getfsstat(2). o Print a warning that the fs stats could possibly be stale o Modify the man page and document this new behavior as a bug. Approved by: bmilekic (mentor) PR: 68165
Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Jun 4 09:30:51 2004 UTC (7 years, 8 months ago) by das
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +13 -8 lines
Convert fsbtoblk() from a macro to a function. The redundant instances of 64-bit arithmetic were costing 775 bytes, and the inlining offered no benefit. Moreover, ambiguity as to the argument types led to the introduction of a bug (see rev 1.56). Also, remove some casts that are now clearly redundant. Inspired by: 67467
Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon May 24 22:21:49 2004 UTC (7 years, 8 months ago) by pjd
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +17 -86 lines
Use humanize_number(3) to format sizes into a human readable form.
Revision 1.23.2.10: download - view: text, markup, annotated - select for diffs
Thu May 20 17:10:10 2004 UTC (7 years, 8 months ago) by kensmith
Branches: RELENG_4
CVS tags: RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11
Diff to: previous 1.23.2.9: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.9: +1 -1 lines
Add mention of -g option to manual page and usage message. This had already been done in HEAD as part of a larger commit (rev. 1.60).
Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Apr 22 17:05:08 2004 UTC (7 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +12 -13 lines
Fix some style issues in rev 1.58. Use 64-bit integer math vs. mixed FP & integer. Add -g to the usage().
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Apr 22 16:26:05 2004 UTC (7 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -2 lines
Fix printing of the "Mounted on" values for 'df -i'. Fix spacing before "Mounted on" column in general. Submitted by: bde
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Apr 18 20:56:31 2004 UTC (7 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +47 -13 lines
Add -c option simular to du(1). PR: 19635 Submitted by: cyrille.lefevre@laposte.net
Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Apr 6 20:06:46 2004 UTC (7 years, 10 months ago) by markm
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +0 -4 lines
Remove clause 3 from the UCB licenses. OK'ed by: imp, core
Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Mar 9 10:02:44 2004 UTC (7 years, 11 months ago) by le
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -1 lines
And a bandaid so that the output of "available space" is correct when using -m and -g switches and "available space" is negative (i.e. when the file system is already using the root-reserved minimum free space). Obtained from: Stefan Farfeleder <stefan@fafoe.narf.at> PR: bin/62536 Submitted by: Peter van Dijk <peter@dataloss.nl> Approved by: grog (mentor), bde
Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Mar 5 08:10:16 2004 UTC (7 years, 11 months ago) by markm
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -1 lines
Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Feb 8 23:42:09 2004 UTC (8 years ago) by iedowse
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +41 -43 lines
Use int rather than size_t storage for printf field widths to avoid many casts. Reviewed by: bde
Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Nov 12 21:47:42 2003 UTC (8 years, 3 months ago) by kris
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
Fix format strings (intmax_t is %jd, not %qd) Reviewed by: tjr
Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Nov 12 08:01:39 2003 UTC (8 years, 3 months ago) by mckusick
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +25 -23 lines
Update the statfs structure with 64-bit fields to allow accurate reporting of multi-terabyte filesystem sizes. You should build and boot a new kernel BEFORE doing a `make world' as the new kernel will know about binaries using the old statfs structure, but an old kernel will not know about the new system calls that support the new statfs structure. Running an old kernel after a `make world' will cause programs such as `df' that do a statfs system call to fail with a bad system call. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Tim Robbins <tjr@freebsd.org> Reviewed by: Julian Elischer <julian@elischer.org> Reviewed by: the hoards of <arch@freebsd.org> Sponsored by: DARPA & NAI Labs.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Sep 13 20:46:58 2003 UTC (8 years, 4 months ago) by obrien
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +10 -10 lines
Be a little bit more correct WRT counting numbers vs. integer numbers.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jun 3 11:54:42 2003 UTC (8 years, 8 months ago) by bde
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -5 lines
Fixed exit code in previous commit. "var++" to set a flag to nonzero 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.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Jun 2 22:33:12 2003 UTC (8 years, 8 months ago) by jkh
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -0 lines
From the df man page: -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
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat May 3 16:02:52 2003 UTC (8 years, 9 months ago) by markm
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +17 -13 lines
WARNS cleaning for the Alpha. On alpha, size_t is a long, and it
solicits a warning when used for the '*' in printf("%*d"). Cast
to u_int for universal use.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat May 3 10:21:26 2003 UTC (8 years, 9 months ago) by markm
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +61 -39 lines
Fix a shedload of warnings, some memory leaks and clean up WARNS and lint. This is now WARNS=9, std=c99 clean on i386.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu May 1 16:58:55 2003 UTC (8 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -2 lines
Quiet warnings about copyright[].
Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 8 10:12:13 2003 UTC (9 years, 1 month ago) by obrien
Branches: RELENG_5_0
CVS tags: RELENG_5_0_0_RELEASE
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +3 -4 lines
MFC: revert getbsize's headerlenp argument back to an int *. Approved by: re
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Dec 30 18:10:37 2002 UTC (9 years, 1 month ago) by mike
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -4 lines
Back out rev 1.44; getbsize(3)'s original interface has been restored. Approved by: markm
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Oct 23 22:09:05 2002 UTC (9 years, 3 months ago) by markm
Branches: MAIN
CVS tags: RELENG_5_0_BP
Branch point for: RELENG_5_0
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -3 lines
Fix for changed getbsize arg type.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Aug 26 04:56:23 2002 UTC (9 years, 5 months ago) by trhodes
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -1 lines
Fix 'SYNOPSIS' and 'usage'
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Aug 21 17:32:31 2002 UTC (9 years, 5 months ago) by trhodes
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -7 lines
s/filesystem/file system/ as discussed on -developers
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Aug 10 20:19:02 2002 UTC (9 years, 6 months ago) by mux
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +20 -11 lines
- Introduce a new struct xvfsconf, the userland version of struct vfsconf. - 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.
Revision 1.23.2.9: download - view: text, markup, annotated - select for diffs
Mon Jul 1 00:14:24 2002 UTC (9 years, 7 months ago) by iedowse
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.23.2.8: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.8: +3 -5 lines
MFC: 1.39; avoids occasional incorrect column alignment of NFS filesystems.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jun 30 05:13:52 2002 UTC (9 years, 7 months ago) by obrien
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -3 lines
Consistently use __FBSDID
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat May 18 21:10:40 2002 UTC (9 years, 8 months ago) by iedowse
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -5 lines
Unconditionally update the maximum field width statistics when we 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>
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun May 12 19:24:09 2002 UTC (9 years, 9 months ago) by phk
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +33 -109 lines
Remove the private code for reading UFS superblocks, this does not belong 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.
Revision 1.23.2.8: download - view: text, markup, annotated - select for diffs
Fri Apr 5 00:25:14 2002 UTC (9 years, 10 months ago) by iedowse
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6
Diff to: previous 1.23.2.7: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.7: +106 -39 lines
MFC: 1.37; make the columns line up, even for very large filesystems.
Revision 1.23.2.7: download - view: text, markup, annotated - select for diffs
Fri Apr 5 00:07:15 2002 UTC (9 years, 10 months ago) by iedowse
Branches: RELENG_4
Diff to: previous 1.23.2.6: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.6: +50 -65 lines
MFC: various style and warning fixes from current in preparation for merging revision 1.37. Includes: 1.27: BDECFLAGS cleanup 1.31: Fix style bugs from ref 1.28 1.33: Do not dot terminate errx() strings 1.35: __P removal 1.36: Warnings fixes
Revision 1.23.2.6: download - view: text, markup, annotated - select for diffs
Thu Apr 4 23:59:34 2002 UTC (9 years, 10 months ago) by iedowse
Branches: RELENG_4
Diff to: previous 1.23.2.5: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.5: +7 -8 lines
Fix some MFC confusion: revision 1.23.2.4, which claims to just back out the MFC of revision 1.27, actually also backed out parts of the MFC of revision 1.26 and added an unused variable `eno'.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Mar 26 20:32:37 2002 UTC (9 years, 10 months ago) by iedowse
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +106 -39 lines
Make the columns in the output of df(1) line up, even for very large 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
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Feb 22 20:57:53 2002 UTC (9 years, 11 months ago) by markm
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -5 lines
Warnings fixes inspired by lint, a commercial lint and WARNS=4.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Feb 2 06:24:13 2002 UTC (10 years ago) by imp
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +23 -41 lines
o __P has been reoved 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)
Revision 1.23.2.5: download - view: text, markup, annotated - select for diffs
Wed Dec 19 08:47:54 2001 UTC (10 years, 1 month ago) by ru
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.23.2.4: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.4: +5 -3 lines
MFC: 1.34: make ``df -l'' work when no network filesystems are loaded.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Dec 19 08:38:02 2001 UTC (10 years, 1 month ago) by ru
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -2 lines
Make ``df -l'' work when no network filesystems are loaded. PR: bin/32397
Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Dec 11 18:22:01 2001 UTC (10 years, 2 months ago) by charnier
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Do not dot terminate errx() strings
Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 9 01:25:51 2001 UTC (10 years, 6 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.23.2.3: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.3: +30 -33 lines
Effectively back out the MFC of rev 1.27. I accidently MFCed it. Approved by: re Requested by: kris
Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 1 02:30:32 2001 UTC (10 years, 6 months ago) by obrien
Branches: RELENG_4
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.2: +37 -33 lines
MFC: rev 1.26 (-t), 1.27 (BDECFLAGS & WARNS), 1.30 (unsigned int),
rev 1.31 (style(9) of rev 1.28)
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Aug 1 02:09:09 2001 UTC (10 years, 6 months ago) by obrien
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
Remove a misplaced space.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jul 16 15:49:58 2001 UTC (10 years, 6 months ago) by wollman
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +13 -12 lines
Fix style bugs introduced by rev 1.28. No functional changes.
Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 18 16:07:09 2001 UTC (10 years, 7 months ago) by pirzyk
Branches: RELENG_4
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +56 -3 lines
Added the -l option to df PR: bin/27240 Reviewed by: GAWollman MFC: v1.24 (df.1) v1.28 (df.c)
Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jun 5 21:55:57 2001 UTC (10 years, 8 months ago) by nectar
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Add parens to get the cast that was meant in previous commit. While we're at it, this file seems to prefer `unsigned int' over `u_int', so go with that.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jun 5 21:16:27 2001 UTC (10 years, 8 months ago) by mjacob
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -3 lines
Wrong. The size of size_t is *not* the same as the size of an integer. MFC after: 2 weeks
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jun 4 23:07:15 2001 UTC (10 years, 8 months ago) by pirzyk
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +56 -3 lines
Added the -l option to df, so to be compatable with other unicies. PR: bin/27240 Reviewed by: GAWollman MFC after: 2 weeks
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun May 20 04:12:30 2001 UTC (10 years, 8 months ago) by kris
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +16 -15 lines
BDECFLAGS cleanup (modulo long long issues). Add WARNS. Tested on alpha. Reviewed by: the great man himself (except alpha cleanups)
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed May 9 08:44:15 2001 UTC (10 years, 9 months ago) by kris
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +39 -5 lines
Fix operation of df on unmounted filesystems, and add the ability to run df on unmounted non-UFS filesystem using '-t' Submitted by: bde
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue May 8 06:58:25 2001 UTC (10 years, 9 months ago) by kris
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -36 lines
GC some dead code relating to running df on unmounted block devices, 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
Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 13 03:19:40 2000 UTC (11 years, 8 months ago) by jwd
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -2 lines
MFC: 1.24 to 4.x df -g support
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 3 20:17:39 2000 UTC (11 years, 8 months ago) by jwd
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -2 lines
Add -g for gigabyte sizes. Approved by: jkh
Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 23 03:19:34 2000 UTC (12 years ago) by mharo
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.1: +134 -13 lines
MFC: 1.23 (df -hH flags) minus 1.22 (-a flag)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Dec 15 03:44:09 1999 UTC (12 years, 1 month ago) by mharo
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +132 -12 lines
add human readable output (-h and -H) 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>
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Nov 1 04:57:43 1999 UTC (12 years, 3 months ago) by julian
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +11 -6 lines
Most modern OSs have the ability to flag certain mounts as ones to 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>
Revision 1.7.4.4: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:01:21 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.7.4.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.3: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Sun Sep 5 10:59:39 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.2: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 14:12:15 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Aug 27 23:14:07 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Dec 16 05:29:09 1998 UTC (13 years, 1 month ago) by peter
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +14 -5 lines
Cleaning out old stuff from one of my source trees: use mkdtemp() rather than mktemp() and fix a trivial memory leak.
Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 3 05:40:01 1997 UTC (14 years, 2 months ago) by imp
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +2 -2 lines
MFC: EOF -> -1 in comparison of return value from getopt
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Oct 13 09:36:05 1997 UTC (14 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -5 lines
Style police: keep a variable list in alphabetical order, and add pointless paren's to return statements. Nitpicked by: bde :)
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Oct 12 13:55:43 1997 UTC (14 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +18 -11 lines
Make df(1) exit with non-success status if something went wrong. PR: bin/4415
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Aug 7 21:31:00 1997 UTC (14 years, 6 months ago) by steve
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -4 lines
Add Bruce's _NEW_VFSCONF flag to make this compile cleanly and sccsid -> rcsid.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Mar 28 15:24:17 1997 UTC (14 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 13 17:41:37 1997 UTC (14 years, 11 months ago) by bde
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +37 -104 lines
Merged from Lite2. The -t option is now handled better. The only visible change should be that the usage message now actually matches the man page.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 10 19:39:43 1997 UTC (14 years, 11 months ago) by guido
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
This is a funny one: df for a device that was not mounted used to fail for root only.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 22 14:02:57 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1 lines
Revert $FreeBSD$ to $Id$
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Feb 17 11:29:54 1997 UTC (14 years, 11 months ago) by bde
Branches: CSRG
CVS tags: bsd_44_lite_2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +38 -97 lines
Attempt to import Lite2's df.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 17 05:26:08 1997 UTC (14 years, 11 months ago) by jkh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -0 lines
Include <ufs/ufs/ufsmount.h>.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jan 14 05:30:12 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$ This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Dec 14 05:56:03 1996 UTC (15 years, 2 months ago) by steve
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Merge Lite2 mods, cleanup man page, and -Wall cleaning.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 13 17:15:11 1996 UTC (15 years, 2 months ago) by joerg
Branches: RELENG_2_2
CVS tags: RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
YAMFC
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Dec 11 10:01:56 1996 UTC (15 years, 2 months ago) by jkh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
The manual page of df called cd9660 file systems by the name
isofs while the df command itself used the name iso9660fs or
cdfs. Both of these were inconsistent with the name cd9660 which
is used by the mount command. I modified df to recognize all of
the names cd9660, cdfs, isofs, and iso9660fs, and take them all
to refer to the same thing. Naturally I added a note of this
behaviour in the manual page too.
Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
Revision 1.7.4.3: download - view: text, markup, annotated - select for diffs
Tue Jun 11 04:38:08 1996 UTC (15 years, 8 months ago) by bde
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.2: +2 -5 lines
Brought in the fixes from rev.1.8 - use the freespace() macro instead of buggy explicit code to fix the `Avail' count for (non-mounted) file systems larger than 11GB, and don't replace "Avail" counts of < 0 by 0.
Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Wed Jun 5 02:35:24 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.1: +4 -1 lines
This 3rd mega-commit should hopefully bring us back to where we were. I can get it to `make world' succesfully, anyway!
Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Wed May 29 22:18:46 1996 UTC (15 years, 8 months ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -5 lines
Merge from HEAD, except: Clients that used gnumalloc still do, despite the merge. We're not bringing phkmalloc over. Thread stuff left out. PCCARD support left out.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jan 14 18:55:09 1996 UTC (16 years, 1 month ago) by bde
Branches: MAIN
CVS tags: RELENG_2_2_BP
Branch point for: RELENG_2_2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -5 lines
Partially fixed negative and truncated "Avail" counts in df output. This fixes PR943. ffs/ffs_vfsops.c: ffs_statfs() multiplied by (100 - minfree) as part of calculating the minfree percentage (complemented in 100%), so with the standard minfree of 8, it was broken for file systems of size >= 1TB/92 = 11GB. Use the standard freespace() macro instead. This also fixes a rounding bug (the "Avail" count was sometimes 1 too small). ffs/* (not fixed): The freespace() macro multiplies by minfree, so with the standard minfree of 8, it is broken for file systems of size >= 1TB/8 = 128GB. This bug is more serious since it affects block allocation. ffs/ffs_alloc.c (not fixed): Ordinary users are sometimes allowed to allocate 1 (partial) block too many so that the "Avail" count goes negative. E.g., if there is 1 fragment available and the file is fairly large, one more full block is allocated. df/df.c: ufs_df() used/uses essentially the same code as ffs_statfs(), so it had/has the same bugs. ufs_df() gratuitously replaced "Avail" counts of < 0 by 0, so it gave different results for non-mounted file systems in this case.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 30 00:06:42 1995 UTC (16 years, 8 months ago) by rgrimes
Branches: MAIN
CVS tags: RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5
Branch point for: RELENG_2_1_0
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
Remove trailing whitespace. Reviewed by: phk
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 19 13:28:15 1995 UTC (16 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: RELENG_2_0_5_ALPHA
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +23 -21 lines
You will find enclosed some changes to make gcc -Wall more happy in /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 24 02:55:11 1994 UTC (17 years, 4 months ago) by davidg
Branches: MAIN
CVS tags: RELEASE_2_0, BETA_2_0, ALPHA_2_0
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -0 lines
Added $Id$
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Aug 12 10:23:49 1994 UTC (17 years, 6 months ago) by davidg
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -10 lines
The last commit was bogus...the putenv doesn't affect the parent process, so the BLOCKSIZE doesn't need to be preserved. Also initialized the flags variables, and used 1k instead of 1024 for BLOCKSIZE.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Aug 12 07:26:36 1994 UTC (17 years, 6 months ago) by davidg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -2 lines
Implemented the -k flag more properly...don't destroy the user's setting of the BLOCKSIZE environment variable.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 10 19:21:07 1994 UTC (17 years, 6 months ago) by wollman
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -2 lines
Gimme back my `-k' option! Also document `-t' option in the usage message.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu May 26 06:18:13 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
BSD 4.4 Lite bin Sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu May 26 06:18:12 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision
