mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
19816dec92
commit
c22acefba5
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue