| 749 | static void freebsd11_cvtstatfs(struct statfs *, struct freebsd11_statfs *); |
| 750 | |
| 751 | int |
| 752 | freebsd11_statfs(struct thread *td, struct freebsd11_statfs_args *uap) |
| 753 | { |
| 754 | struct freebsd11_statfs osb; |
| 755 | struct statfs *sfp; |
| 756 | int error; |
| 757 | |
| 758 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 759 | error = kern_statfs(td, uap->path, UIO_USERSPACE, sfp); |
| 760 | if (error == 0) { |
| 761 | freebsd11_cvtstatfs(sfp, &osb); |
| 762 | error = copyout(&osb, uap->buf, sizeof(osb)); |
| 763 | } |
| 764 | free(sfp, M_STATFS); |
| 765 | return (error); |
| 766 | } |
| 767 | |
| 768 | /* |
| 769 | * Get filesystem statistics. |
nothing calls this directly
no test coverage detected