summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-10 19:21:07 +0000
committerwollman <wollman@FreeBSD.org>1994-08-10 19:21:07 +0000
commit670a01d488cd426b06ef3810ef072b61f698dfba (patch)
tree91f2cea6239e3b0249bce721676ffeda2ae4786e /bin/df/df.c
parent8dd7fea0026294e2042479f4076324d47eabca5b (diff)
downloadFreeBSD-src-670a01d488cd426b06ef3810ef072b61f698dfba.zip
FreeBSD-src-670a01d488cd426b06ef3810ef072b61f698dfba.tar.gz
Gimme back my `-k' option!
Also document `-t' option in the usage message.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index eb6ee81..02e6ca9 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -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);
}
OpenPOWER on IntegriCloud