mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Gimme back my `-k' option!
Also document `-t' option in the usage message.
This commit is contained in:
parent
f5b35288ac
commit
7f0eabfd0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2008
|
@ -39,7 +39,7 @@
|
|||
.Nd display free disk space
|
||||
.Sh SYNOPSIS
|
||||
.Nm df
|
||||
.Op Fl in
|
||||
.Op Fl ink
|
||||
.Op Fl t Ar type
|
||||
.Op Ar file | Ar filesystem ...
|
||||
.Sh DESCRIPTION
|
||||
|
@ -60,6 +60,11 @@ The following options are available:
|
|||
.Bl -tag -width Ds
|
||||
.It Fl i
|
||||
Include statistics on the number of free inodes.
|
||||
.It Fl k
|
||||
Use 1024-byte (1-Kbyte) blocks rather than the default. Note that
|
||||
this overrides the
|
||||
.Ev BLOCKSIZE
|
||||
specification from the environment.
|
||||
.It Fl n
|
||||
Print out the previously obtained statistics from the filesystems.
|
||||
This option should be used if it is possible that one or more
|
||||
|
|
|
@ -121,11 +121,14 @@ main(argc, argv)
|
|||
int ch, err, i, maxwidth, width;
|
||||
char *mntpt;
|
||||
|
||||
while ((ch = getopt(argc, argv, "int:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "iknt:")) != EOF)
|
||||
switch (ch) {
|
||||
case 'i':
|
||||
iflag = 1;
|
||||
break;
|
||||
case 'k':
|
||||
putenv("BLOCKSIZE=1024");
|
||||
break;
|
||||
case 'n':
|
||||
nflag = 1;
|
||||
break;
|
||||
|
@ -415,6 +418,7 @@ bread(off, buf, cnt)
|
|||
void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: df [-in] [file | file_system ...]\n");
|
||||
fprintf(stderr,
|
||||
"usage: df [-ikn] [-t fstype] [file | file_system ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue