| 595 | }; |
| 596 | #endif |
| 597 | int |
| 598 | freebsd4_statfs(struct thread *td, struct freebsd4_statfs_args *uap) |
| 599 | { |
| 600 | struct ostatfs osb; |
| 601 | struct statfs *sfp; |
| 602 | int error; |
| 603 | |
| 604 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 605 | error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); |
| 606 | if (error == 0) { |
| 607 | freebsd4_cvtstatfs(sfp, &osb); |
| 608 | error = copyout(&osb, uap->buf, sizeof(osb)); |
| 609 | } |
| 610 | free(sfp, M_STATFS); |
| 611 | return (error); |
| 612 | } |
| 613 | |
| 614 | /* |
| 615 | * Get filesystem statistics. |
nothing calls this directly
no test coverage detected