|
nfs-ganesha 1.4
|
Renames an entry. More...
#include "LRU_List.h"#include "log.h"#include "HashData.h"#include "HashTable.h"#include "fsal.h"#include "cache_inode.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_rename_cached_dirent (cache_entry_t *parent, fsal_name_t *oldname, fsal_name_t *newname, cache_inode_status_t *status) |
| Renames an entry in the same directory. | |
| cache_inode_status_t | cache_inode_rename (cache_entry_t *dir_src, fsal_name_t *oldname, cache_entry_t *dir_dest, fsal_name_t *newname, fsal_attrib_list_t *attr_src, fsal_attrib_list_t *attr_dest, fsal_op_context_t *context, cache_inode_status_t *status) |
| Renames an entry. | |
Renames an entry.
cache_inode_rename.c : Renames an entry.
Definition in file cache_inode_rename.c.
| cache_inode_status_t cache_inode_rename | ( | cache_entry_t * | dir_src, |
| fsal_name_t * | oldname, | ||
| cache_entry_t * | dir_dest, | ||
| fsal_name_t * | newname, | ||
| fsal_attrib_list_t * | attr_src, | ||
| fsal_attrib_list_t * | attr_dest, | ||
| fsal_op_context_t * | context, | ||
| cache_inode_status_t * | status | ||
| ) |
Renames an entry.
This function calls the FSAL to rename a file, then mirrors the operation in the cache.
| [in] | dir_src | The source directory |
| [in] | oldname | The current name of the file |
| [in] | dir_dest | The destination directory |
| [in] | newname | The name to be assigned to the object |
| [out] | attr_src | Source directory attributes after operation |
| [out] | pattr_dest | Destination directory attributes after operation |
| [in] | context | FSAL credentials |
| [out] | status | Returned status |
| CACHE_INODE_SUCCESS | if operation is a success. |
| CACHE_INODE_NOT_FOUND | if source object does not exist |
| CACHE_INODE_ENTRY_EXISTS | on collision. |
| CACHE_INODE_BAD_TYPE | if dir_src or dir_dest is not a directory. |
Definition at line 185 of file cache_inode_rename.c.
| cache_inode_status_t cache_inode_rename_cached_dirent | ( | cache_entry_t * | parent, |
| fsal_name_t * | oldname, | ||
| fsal_name_t * | newname, | ||
| cache_inode_status_t * | status | ||
| ) |
Renames an entry in the same directory.
Renames an entry in the same directory.
| [in,out] | parent | The directory to be managed |
| [in] | oldname | The name of the entry to rename |
| [in] | newname | The new name for the entry |
| [out] | status | returned status. |
Definition at line 74 of file cache_inode_rename.c.
1.7.3