nfs-ganesha 1.4
Functions

cache_content_cache_behaviour.c File Reference

Management of the file content cache: choose if an entry in the metadata cache is to be cached or not. More...

#include "LRU_List.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "cache_content.h"
#include "cache_content_policy.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>

Go to the source code of this file.

Functions

cache_content_caching_type_t cache_content_cache_behaviour (cache_entry_t *pentry_inode, cache_content_policy_data_t *ppolicy_data, cache_content_client_t *pclient, cache_content_status_t *pstatus)

Detailed Description

Management of the file content cache: choose if an entry in the metadata cache is to be cached or not.

Author:
Author:
deniel
Date:
Date:
2005/08/03 07:22:17
Version:
Revision:
1.2

cache_content_cache_behaviour.c : Choose if an entry in the metadata cache is to be cached or not.

Definition in file cache_content_cache_behaviour.c.


Function Documentation

cache_content_caching_type_t cache_content_cache_behaviour ( cache_entry_t pentry_inode,
cache_content_policy_data_t ppolicy_data,
cache_content_client_t pclient,
cache_content_status_t pstatus 
)

cache_content_cache_behaviour: chooses if a file is to be cached in data cache or not, basec o the caching policy.

Chooses if a file is to be cached in data cache or not, basec o the caching policy.

No lock management is done in this layer: the related pentry in the cache inode layer is locked and will prevent from concurent accesses.

Parameters:
pentry[IN] entry in file content layer whose content is to be flushed.
pclient[IN] ressource allocated by the client for the nfs management. [OUT] returned status.
Returns:
CACHE_CONTENT_FULLY_CACHED if file is to be cached

Definition at line 58 of file cache_content_cache_behaviour.c.