Go to the source code of this file.
Define Documentation
| #define ECL_MAX_ERRMSG_LEN 1024 |
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.