|
nfs-ganesha 1.4
|
Emergency flush for forcing flush of data cached files to FSAL. More...
#include "LRU_List.h"#include "log.h"#include "HashData.h"#include "HashTable.h"#include "fsal.h"#include "nfs_core.h"#include "cache_inode.h"#include "cache_content.h"#include <unistd.h>#include <sys/types.h>#include <sys/param.h>#include <time.h>#include <pthread.h>#include <errno.h>#include <dirent.h>#include <sys/stat.h>#include <string.h>Go to the source code of this file.
Defines | |
| #define | XSTR(s) STR(s) |
| #define | STR(s) #s |
Functions | |
| cache_content_status_t | cache_content_emergency_flush (char *cachedir, cache_content_flush_behaviour_t flushhow, unsigned int lw_mark_trigger_flag, time_t grace_period, unsigned int index, unsigned int mod, unsigned int *p_nb_flushed, unsigned int *p_nb_too_young, unsigned int *p_nb_errors, unsigned int *p_nb_orphans, fsal_op_context_t *pcontext, cache_content_status_t *pstatus) |
Variables | |
| unsigned int | cache_content_dir_errno |
Emergency flush for forcing flush of data cached files to FSAL.
Definition in file cache_content_emergency_flush.c.
| #define STR | ( | s | ) | #s |
| #define XSTR | ( | s | ) | STR(s) |
| cache_content_status_t cache_content_emergency_flush | ( | char * | cachedir, |
| cache_content_flush_behaviour_t | flushhow, | ||
| unsigned int | lw_mark_trigger_flag, | ||
| time_t | grace_period, | ||
| unsigned int | index, | ||
| unsigned int | mod, | ||
| unsigned int * | p_nb_flushed, | ||
| unsigned int * | p_nb_too_young, | ||
| unsigned int * | p_nb_errors, | ||
| unsigned int * | p_nb_orphans, | ||
| fsal_op_context_t * | pcontext, | ||
| cache_content_status_t * | pstatus | ||
| ) |
cache_content_emergency_flush: Flushes the content of a file in the local cache to the FSAL data.
Flushes the content of a file in the local cache to the FSAL data. This routine should be called only from the cache_inode layer.
No lock management is done in this layer: the related pentry in the cache inode layer is locked and will prevent from concurent accesses.
| cachedir | [IN] cachedir the filesystem where the cache resides |
| flushhow | [IN] should we delete local files or not ? |
| lw_mark_trig | [IN] shpuld we purge until low water mark is reached ? |
| grace_period | [IN] grace_period The grace period for a file before being considered for deletion |
| p_nb_flushed | [INOUT] current flushed count |
| p_nb_errors | [INOUT] current flush errors |
| p_nb_orphans | [INOUT] current orphan files detected |
| pcontext | [INOUT] pcontext the FSAL context for this operation |
| pstatys | [OUT] the status of the operation. |
Definition at line 103 of file cache_content_emergency_flush.c.
| unsigned int cache_content_dir_errno |
Definition at line 74 of file cache_content_misc.c.
1.7.3