nfs-ganesha 1.4
Defines | Functions

ExternalControl.h File Reference

Go to the source code of this file.

Defines

#define ECL_MAX_ERRMSG_LEN   1024

Functions

int ECL_datacache_load_file (const char *filepath, char *errmsg)
int ECL_datacache_sync_file (const char *filepath, char *errmsg)
int ECL_datacache_flush_file (const char *filepath, char *errmsg)
int ECL_datacache_reload_file (const char *filepath, char *errmsg)
int ECL_halt_server (char *errmsg)

Define Documentation

#define ECL_MAX_ERRMSG_LEN   1024

Definition at line 2 of file ExternalControl.h.


Function Documentation

int ECL_datacache_flush_file ( const char *  filepath,
char *  errmsg 
)

Flush a datacached file to filesystem (flush it and remove it from cache).

Parameters:
filepath(in): the path of the object to be flushed
errmsg(out): an explanation string to be returned to administrator
Returns:
0 if no error occured, an error code else.
int ECL_datacache_load_file ( const char *  filepath,
char *  errmsg 
)

Loads a file into datacache.

Parameters:
filepath(in): the path of the object to be datacached
errmsg(out): an explanation string to be returned to administrator
Returns:
0 if no error occured, an error code else.
int ECL_datacache_reload_file ( const char *  filepath,
char *  errmsg 
)

Reload a file from filesystem to datacache (WARNING: this overwrites the datacached version !!!).

Parameters:
filepath(in): the path of the object to be reloaded
errmsg(out): an explanation string to be returned to administrator
Returns:
0 if no error occured, an error code else.
int ECL_datacache_sync_file ( const char *  filepath,
char *  errmsg 
)

Synchronize a datacached file to filesystem (flush it but keep it in cache).

Parameters:
filepath(in): the path of the object to be synchronized
errmsg(out): an explanation string to be returned to administrator
Returns:
0 if no error occured, an error code else.
int ECL_halt_server ( char *  errmsg)

Properly stop ganesha NFS server.

Parameters:
errmsg(out): an explanation string to be returned to administrator
Returns:
0 if no error occured, an error code else.