| 621 | }; |
| 622 | #endif |
| 623 | int |
| 624 | freebsd4_fstatfs(struct thread *td, struct freebsd4_fstatfs_args *uap) |
| 625 | { |
| 626 | struct ostatfs osb; |
| 627 | struct statfs *sfp; |
| 628 | int error; |
| 629 | |
| 630 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 631 | error = kern_fstatfs(td, uap->fd, sfp); |
| 632 | if (error == 0) { |
| 633 | freebsd4_cvtstatfs(sfp, &osb); |
| 634 | error = copyout(&osb, uap->buf, sizeof(osb)); |
| 635 | } |
| 636 | free(sfp, M_STATFS); |
| 637 | return (error); |
| 638 | } |
| 639 | |
| 640 | /* |
| 641 | * Get statistics on all filesystems. |
nothing calls this directly
no test coverage detected