nfs-ganesha 1.4
|
Creation of an hardlink. 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 <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_inode_status_t | cache_inode_link (cache_entry_t *entry, cache_entry_t *dest_dir, fsal_name_t *name, fsal_attrib_list_t *attr, fsal_op_context_t *context, cache_inode_status_t *status) |
Links a new name to a file. |
Creation of an hardlink.
cache_inode_link.c : Creation of an hardlink.
Definition in file cache_inode_link.c.
cache_inode_status_t cache_inode_link | ( | cache_entry_t * | entry, |
cache_entry_t * | dest_dir, | ||
fsal_name_t * | name, | ||
fsal_attrib_list_t * | attr, | ||
fsal_op_context_t * | context, | ||
cache_inode_status_t * | status | ||
) |
Links a new name to a file.
This function hard links a new name to an existing file.
[in] | entry | The file to which to add the new name. Must not be a directory. |
[in] | dest_dir | The directory in which to create the new name |
[in] | name | The new name to add to the file |
[out] | attr | The attributes on entry after the operation |
[in] | context | FSAL credentials |
[out] | status | returned status. |
CACHE_INODE_SUCCESS | if operation is a success |
CACHE_INODE_BAD_TYPE | either source or destination have incorrect type |
CACHE_INODE_ENTRY_EXISTS | entry of that name already exists in destination. |
Definition at line 80 of file cache_inode_link.c.