* Get filesystem statistics. */
| 769 | * Get filesystem statistics. |
| 770 | */ |
| 771 | int |
| 772 | freebsd11_fstatfs(struct thread *td, struct freebsd11_fstatfs_args *uap) |
| 773 | { |
| 774 | struct freebsd11_statfs osb; |
| 775 | struct statfs *sfp; |
| 776 | int error; |
| 777 | |
| 778 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 779 | error = kern_fstatfs(td, uap->fd, sfp); |
| 780 | if (error == 0) { |
| 781 | freebsd11_cvtstatfs(sfp, &osb); |
| 782 | error = copyout(&osb, uap->buf, sizeof(osb)); |
| 783 | } |
| 784 | free(sfp, M_STATFS); |
| 785 | return (error); |
| 786 | } |
| 787 | |
| 788 | /* |
| 789 | * Get statistics on all filesystems. |
nothing calls this directly
no test coverage detected