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
This commit is contained in:
Jordan K. Hubbard 2003-06-02 22:33:12 +00:00
parent 19816dec92
commit c22acefba5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115744

View File

@ -280,6 +280,15 @@ main(int argc, char *argv[])
rv = 1;
continue;
}
/* Check to make sure the arguments we've been
* given are satisfied. Return an error if we
* have been asked to list a mount point that does
* not match the other args we've been given (-l, -t, etc.)
*/
if (checkvfsname(statfsbuf.f_fstypename, vfslist)) {
rv++;
continue;
}
if (argc == 1) {
bzero(&maxwidths, sizeof(maxwidths));
update_maxwidths(&maxwidths, &statfsbuf);