nfs-ganesha 1.4
|
Creation of a file through the cache layer. More...
#include "LRU_List.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "cache_inode_lru.h"
#include "cache_inode_weakref.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <assert.h>
Go to the source code of this file.
Functions | |
cache_entry_t * | cache_inode_create (cache_entry_t *parent, fsal_name_t *name, cache_inode_file_type_t type, fsal_accessmode_t mode, cache_inode_create_arg_t *create_arg, fsal_attrib_list_t *attr, fsal_op_context_t *context, cache_inode_status_t *status) |
Creates an object in a directory. |
Creation of a file through the cache layer.
cache_inode_mkdir.c : Creation of an entry through the cache layer
Definition in file cache_inode_create.c.
cache_entry_t* cache_inode_create | ( | cache_entry_t * | parent, |
fsal_name_t * | name, | ||
cache_inode_file_type_t | type, | ||
fsal_accessmode_t | mode, | ||
cache_inode_create_arg_t * | create_arg, | ||
fsal_attrib_list_t * | attr, | ||
fsal_op_context_t * | context, | ||
cache_inode_status_t * | status | ||
) |
Creates an object in a directory.
This function creates an entry in the cache and underlying filesystem. If an entry is returned, its refcount charged to the call path is +1.
[in] | parent | Parent directory |
[in] | name | Name of the object to create |
[in] | type | Type of the object to create |
[in] | mode | Mode to be used at file creation |
[in] | create_arg | Additional argument for object creation |
[out] | attr | Attributes of the new object |
[in] | context | FSAL credentials |
[out] | status | Returned status |
Definition at line 80 of file cache_inode_create.c.