nfs-ganesha 1.4
Functions

cache_inode_create.c File Reference

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_tcache_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.

Detailed Description

Creation of a file through the cache layer.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:02:26
Version:
Revision:
1.29

cache_inode_mkdir.c : Creation of an entry through the cache layer

Definition in file cache_inode_create.c.


Function Documentation

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.

Parameters:
[in]parentParent directory
[in]nameName of the object to create
[in]typeType of the object to create
[in]modeMode to be used at file creation
[in]create_argAdditional argument for object creation
[out]attrAttributes of the new object
[in]contextFSAL credentials
[out]statusReturned status
Returns:
Cache entry for the file created

Definition at line 80 of file cache_inode_create.c.