df: new option: --total to print grand totals
authorKamil Dudka <kdudka@redhat.com>
Wed, 3 Sep 2008 08:33:06 +0000 (10:33 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 3 Sep 2008 13:39:28 +0000 (15:39 +0200)
commitea2887bbe4c04e3ff5bae2d532a1e19d3198dfce
tree08049fea23e45258aa28546097b63b1a7f04c3f4
parentef6a361a079fbf03950cc405a1ce92c3447563ef
df: new option: --total to print grand totals

* src/df.c (add_uint_with_neg_flag): New function to add two integral
values with separate negation flag.
(show_dev): New parameter force_fsu to display numbers directly. Collect
summary statistics on each printed device.
(usage): Mention new option --total in --help.
(main): Initialize summary on program start. Handle new option --total.
* tests/df/total: Dummy test case for new --total option.
* tests/df/total-awk: Better test case for new --total option (requires
awk).
* doc/coreutils.texi: Mention new parameter --total.
* NEWS: Mention the change.
* TODO: Removed completed task.
NEWS
TODO
doc/coreutils.texi
src/df.c
tests/Makefile.am
tests/check.mk
tests/df/total [new file with mode: 0755]
tests/df/total-awk [new file with mode: 0755]