static fssh_status_t command_sync(int argc, const char* const* argv) { fssh_status_t error = _kern_sync(); if (error != FSSH_B_OK) { fprintf(stderr, "Error: syncing: %s\n", fssh_strerror(error)); return error; } return FSSH_B_OK; }
int sync(void) { int status = _kern_sync(); if (status < 0) { errno = status; status = -1; } return status; }
static void fuse_destroy(void* priv_data) { _kern_sync(); }