|
nfs-ganesha 1.4
|
Truncates a regular file. More...
#include "fsal.h"#include "log.h"#include "HashData.h"#include "HashTable.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_truncate_impl (cache_entry_t *entry, fsal_size_t length, fsal_attrib_list_t *attr, fsal_op_context_t *context, cache_inode_status_t *status) |
| truncates a regular file | |
| cache_inode_status_t | cache_inode_truncate (cache_entry_t *entry, fsal_size_t length, fsal_attrib_list_t *attr, fsal_op_context_t *context, cache_inode_status_t *status) |
| Truncates a regular file specified by its cache entry. | |
Truncates a regular file.
cache_inode_truncate.c : Truncates a regular file.
Definition in file cache_inode_truncate.c.
| cache_inode_status_t cache_inode_truncate | ( | cache_entry_t * | entry, |
| fsal_size_t | length, | ||
| fsal_attrib_list_t * | attr, | ||
| fsal_op_context_t * | context, | ||
| cache_inode_status_t * | status | ||
| ) |
Truncates a regular file specified by its cache entry.
Truncates a regular file specified by its cache entry.
| [in] | entry | The file to be truncated |
| [in] | length | New length for the file |
| [out] | attr | Attrtibutes for the file after the operation |
| [in] | context | FSAL credentials |
| [out] | status | Returned status |
Definition at line 133 of file cache_inode_truncate.c.
| cache_inode_status_t cache_inode_truncate_impl | ( | cache_entry_t * | entry, |
| fsal_size_t | length, | ||
| fsal_attrib_list_t * | attr, | ||
| fsal_op_context_t * | context, | ||
| cache_inode_status_t * | status | ||
| ) |
truncates a regular file
This function truncates a regular file to the length specified.
| [in] | entry | The file to be truncated |
| [in] | length | New length for the file |
| [out] | attr | Attrtibutes for the file after the operation. |
| [in] | context | FSAL credentials |
| [out] | status | Returned status |
Definition at line 73 of file cache_inode_truncate.c.
1.7.3