Exemple #1
0
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;
}
Exemple #2
0
int
sync(void)
{
	int status = _kern_sync();
	if (status < 0) {
		errno = status;
		status = -1;
	}

	return status;
}
Exemple #3
0
static void
fuse_destroy(void* priv_data)
{
	_kern_sync();
}