Table of Contents
gfs_flush - clear a server's cache.
#include <gfs.h>
int gfs_flush_fork(int fork_id);
int gfs_flush_subfile(int file_id, int subfile);
int gfs_flush_disk();
The gfs_flush calls force modified data to be written to
disk, and force the data out of a Galley server's cache.
These calls are not likely to be particularly useful in a
production environment, but are useful for `purifying'
timing results in an experimental system. gfs_flush_fork
flushes the data for a single fork, gfs_flush_subfile
flushes the data for all the forks in a subfile, and
gfs_flush_disk flushes all the data in all the servers.
This last call is clearly not suitable for a production
system.
The gfs_flush calls return 0 on success, or -1 on an error.
GFS_EINVAL
file_id is not a valid file_id, fork_id is not a
valid fork_id, or subfile is not a valid subfile.
GFS_EIO Something went wrong at one of the servers. This
should not happen. If it does, put as much distance
between yourself and the servers as possible. Users
in the midwest/gulf coast regions can head for a
tornado/hurricane cellar.
Table of Contents