| 2583 | } |
| 2584 | |
| 2585 | static int |
| 2586 | kern_aio_fsync(struct thread *td, int op, struct aiocb *ujob, |
| 2587 | struct aiocb_ops *ops) |
| 2588 | { |
| 2589 | int listop; |
| 2590 | |
| 2591 | switch (op) { |
| 2592 | case O_SYNC: |
| 2593 | listop = LIO_SYNC; |
| 2594 | break; |
| 2595 | case O_DSYNC: |
| 2596 | listop = LIO_DSYNC; |
| 2597 | break; |
| 2598 | default: |
| 2599 | return (EINVAL); |
| 2600 | } |
| 2601 | |
| 2602 | return (aio_aqueue(td, ujob, NULL, listop, ops)); |
| 2603 | } |
| 2604 | |
| 2605 | int |
| 2606 | sys_aio_fsync(struct thread *td, struct aio_fsync_args *uap) |
no test coverage detected