History log of /netbsd-src/bin/df/df.c (Results 1 – 25 of 104)
Revision Date Author Comments
# f4e04d03 06-Oct-2024 christos <christos@NetBSD.org>

PR/58718: Christof Meerwald: "total files" and "free files" values swapped
in df -G output


# b4ff2f24 03-Aug-2024 kre <kre@NetBSD.org>

Add -M and -q options to df(1).

-q suppresses warning output (rather than redirecting stderr, which
also buries error messages, which -q does not).

-M requires each arg given to be the name of a mo

Add -M and -q options to df(1).

-q suppresses warning output (rather than redirecting stderr, which
also buries error messages, which -q does not).

-M requires each arg given to be the name of a mount point, and
issues a warning, and ignores the arg, if it is not. This allows
scripts (etc) to have a whole list of places for which to produce df
output, while only listing the ones that are actually mounted (rather
than simply listing the filesystem containing the mount point instead -
perhaps several times). (If there are no args, -M is a no-op).

If the options aren't given, nothing alters.

show more ...


# 76caabcb 18-Dec-2023 kre <kre@NetBSD.org>

Correctly compute the "Filesystem" column with when using -W
(that added "NAME=" occupies space!)

XXX pullup -10


# 1bfd10bd 09-Aug-2022 wiz <wiz@NetBSD.org>

Sync usage with man page.


# 2c3bf36b 08-Aug-2022 kre <kre@NetBSD.org>

Add 4 new flags:
-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 suppr

Add 4 new flags:
-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.

show more ...


# c115fd08 29-Nov-2021 simonb <simonb@NetBSD.org>

Set totals.f_frsize to DEV_BSIZE instead of totals.f_bsize so that
addstat() uses an initialised value for total size calculations.
Fixes core dump for "df -c".


# f40edf74 03-Jan-2021 ginsbach <ginsbach@NetBSD.org>

df: add grand total option

Add a grand total option, -c, similar to the du(1) -c option. Adapted from
the same option (-c) in FreeBSD df(1).


# d767c6da 21-Aug-2020 ryo <ryo@NetBSD.org>

- Bump Size/Used/Avail from 10 to 12, and iUsed/iAvail from 8 to 10 for double-digit terabyte storage.
- set the field width to the optimal, if "-h" is specified.
- if blocksize is greater than M or

- Bump Size/Used/Avail from 10 to 12, and iUsed/iAvail from 8 to 10 for 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.

show more ...


# 3a239caa 21-Aug-2020 ryo <ryo@NetBSD.org>

field width of blocksize and inode can be changed by #define


# 02cdd248 22-Sep-2019 christos <christos@NetBSD.org>

Add a new member to struct vfsstat and grow the unused members
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 moun

Add a new member to struct vfsstat and grow the unused members
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=

show more ...


# d06f528c 18-Sep-2019 christos <christos@NetBSD.org>

Print the wedge name with -W instead of mntfrom


# 3b26941a 26-Aug-2018 sevan <sevan@NetBSD.org>

-G cannot be specified alongside -i or -P.

Heads up by <leot>


# 6b1cac11 05-Mar-2016 kamil <kamil@NetBSD.org>

Correct display of df(1) with the -i parameter

Now the "Mounted on" column should be aligned with /entries.

Patch by Michal Mazurek.


# 3296beef 12-Nov-2015 christos <christos@NetBSD.org>

PR/50422: Robert Elz: df -G prints the wrong value for fragsize (+FIX)
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

PR/50422: Robert Elz: df -G prints the wrong value for fragsize (+FIX)
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

show more ...


# de523f08 07-Jan-2012 christos <christos@NetBSD.org>

use strspct.


# 52d3b7aa 29-Aug-2011 gson <gson@NetBSD.org>

Use the same column spacing for the -h output as with the normal output,
as the same header line format is used in both cases and it can't line
up correctly with both of them otherwise.


# 8bc2f313 29-Aug-2011 enami <enami@NetBSD.org>

No need to print internal state once debug is done.


# bc6c0498 28-Aug-2011 christos <christos@NetBSD.org>

- static/__dead
- use strpct from libutil
- fix off by one in format


# 61ace358 06-Jun-2009 mlelstv <mlelstv@NetBSD.org>

block numbers are measured in f_frsize units. Make -P option
use this instead of f_bsize. Also account for reserved blocks
like normal non-P output.
Fixes PR bin/41541.


# 4a566726 25-Jan-2009 lukem <lukem@NetBSD.org>

sign-compare fix for amd64


# c6144e48 18-Jan-2009 lukem <lukem@NetBSD.org>

fix -Wsign-compare issues


# 2fe2731d 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.


# 9655f5c2 26-May-2008 christos <christos@NetBSD.org>

PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale


# 7d01361f 04-Mar-2008 christos <christos@NetBSD.org>

do the -g -G swap for real.


# 7ca37f5c 04-Mar-2008 christos <christos@NetBSD.org>

PR/36817: Zafer Aydogan: Don't use -g to implement the same named option
in solaris to display statvfs output, use -G instead. I researched this
and all other implementations except Solaris (OS/X, Fr

PR/36817: Zafer Aydogan: Don't use -g to implement the same named option
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.

show more ...


12345