nfs-ganesha 1.4
Functions

cache_inode_link.c File Reference

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.

Detailed Description

Creation of an hardlink.

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

cache_inode_link.c : Creation of an hardlink.

Definition in file cache_inode_link.c.


Function Documentation

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.

Parameters:
[in]entryThe file to which to add the new name. Must not be a directory.
[in]dest_dirThe directory in which to create the new name
[in]nameThe new name to add to the file
[out]attrThe attributes on entry after the operation
[in]contextFSAL credentials
[out]statusreturned status.
Return values:
CACHE_INODE_SUCCESSif operation is a success
CACHE_INODE_BAD_TYPEeither source or destination have incorrect type
CACHE_INODE_ENTRY_EXISTSentry of that name already exists in destination.

Definition at line 80 of file cache_inode_link.c.