| 4593 | }; |
| 4594 | #endif |
| 4595 | int |
| 4596 | sys_fhstatfs(struct thread *td, struct fhstatfs_args *uap) |
| 4597 | { |
| 4598 | struct statfs *sfp; |
| 4599 | fhandle_t fh; |
| 4600 | int error; |
| 4601 | |
| 4602 | error = copyin(uap->u_fhp, &fh, sizeof(fhandle_t)); |
| 4603 | if (error != 0) |
| 4604 | return (error); |
| 4605 | sfp = malloc(sizeof(struct statfs), M_STATFS, M_WAITOK); |
| 4606 | error = kern_fhstatfs(td, fh, sfp); |
| 4607 | if (error == 0) |
| 4608 | error = copyout(sfp, uap->buf, sizeof(*sfp)); |
| 4609 | free(sfp, M_STATFS); |
| 4610 | return (error); |
| 4611 | } |
| 4612 | |
| 4613 | int |
| 4614 | kern_fhstatfs(struct thread *td, fhandle_t fh, struct statfs *buf) |
nothing calls this directly
no test coverage detected