#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <misc/debug.h>
#include <core/tx.h>
#include <core/config.h>
#include <core/koa.h>
#include <core/buffer.h>
#include <core/stats.h>
#include <libc/syscalls.h>
#include <core/txdesc.h>
#include <xcalls/xcalls.h>
Go to the source code of this file.
Classes | |
struct | x_fsync_commit_args_s |
Typedefs | |
typedef x_fsync_commit_args_s | x_fsync_commit_args_t |
Functions | |
int XCALL_DEF() | x_fsync (int fildes, int *result) |
Synchronizes a file in-core state with storage device. |
Definition in file x_fsync.c.
int XCALL_DEF() x_fsync | ( | int | fildes, | |
int * | result | |||
) |
Synchronizes a file in-core state with storage device.
Execution : deferred
Asynchronous failures : commit
[in] | fildes | The file's file descriptor. |
[out] | result | Where to store any asynchronous failures. |
Definition at line 78 of file x_fsync.c.
References x_fsync_commit_args_s::fd, txc_buffer_linear_malloc(), txc_g_koamgr, TXC_INTERNALERROR, txc_koa_get_sentinel(), txc_koa_lock_fd(), txc_koa_lookup_fd2koa(), txc_koa_unlock_fd(), TXC_R_BUSYSENTINEL, TXC_R_FAILURE, TXC_SENTINEL_ACQUIREONRETRY, txc_sentinel_tryacquire(), txc_stats_txstat_increment, txc_tx_abort_transaction(), txc_tx_get_txd(), txc_tx_get_xactstate(), txc_tx_register_commit_action(), TXC_TX_REGULAR_COMMIT_ACTION_ORDER, and x_fsync().