|
nfs-ganesha 1.4
|
#include <string.h>#include "posixdb_internal.h"#include "posixdb_consistency.h"#include "RW_Lock.h"Go to the source code of this file.
Classes | |
| struct | cache_path_entry__ |
Defines | |
| #define | CACHE_PATH_SIZE 509 |
Typedefs | |
| typedef struct cache_path_entry__ | cache_path_entry_t |
Functions | |
| int | fsal_posixdb_cache_init () |
| void | fsal_posixdb_CachePath (posixfsal_handle_t *p_handle, fsal_path_t *p_path) |
| int | fsal_posixdb_UpdateInodeCache (posixfsal_handle_t *p_handle) |
| int | fsal_posixdb_GetInodeCache (posixfsal_handle_t *p_handle) |
| void | fsal_posixdb_InvalidateCache () |
| int | fsal_posixdb_GetPathCache (posixfsal_handle_t *p_handle, fsal_path_t *p_path) |
| fsal_posixdb_status_t | mysql_error_convert (int err) |
| int | db_is_retryable (int sql_err) |
| fsal_posixdb_status_t | db_exec_sql (fsal_posixdb_conn *conn, const char *query, result_handle_t *p_result) |
| fsal_posixdb_status_t | fsal_posixdb_buildOnePath (fsal_posixdb_conn *p_conn, posixfsal_handle_t *p_handle, fsal_path_t *p_path) |
| fsal_posixdb_status_t | fsal_posixdb_recursiveDelete (fsal_posixdb_conn *p_conn, unsigned long long id, unsigned int ts, fsal_nodetype_t ftype) |
| fsal_posixdb_status_t | fsal_posixdb_deleteParent (fsal_posixdb_conn *p_conn, unsigned long long id, unsigned int ts, unsigned long long idparent, unsigned int tsparent, char *filename, int nlink) |
| fsal_posixdb_status_t | fsal_posixdb_internal_delete (fsal_posixdb_conn *p_conn, unsigned long long idparent, unsigned int tsparent, char *filename, fsal_posixdb_fileinfo_t *p_object_info) |
| fsal_posixdb_status_t | posixdb_internal_fillFileinfoFromStrValues (fsal_posixdb_fileinfo_t *p_info, char *devid_str, char *inode_str, char *nlink_str, char *ctime_str, char *ftype_str) |
| Fill a fsal_posixdb_fileinfo_t struct from char* values. | |
| #define CACHE_PATH_SIZE 509 |
Definition at line 25 of file MYSQL/posixdb_internal.c.
| typedef struct cache_path_entry__ cache_path_entry_t |
| fsal_posixdb_status_t db_exec_sql | ( | fsal_posixdb_conn * | conn, |
| const char * | query, | ||
| result_handle_t * | p_result | ||
| ) |
Definition at line 259 of file MYSQL/posixdb_internal.c.
| int db_is_retryable | ( | int | sql_err | ) |
Definition at line 245 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t fsal_posixdb_buildOnePath | ( | fsal_posixdb_conn * | p_conn, |
| posixfsal_handle_t * | p_handle, | ||
| fsal_path_t * | p_path | ||
| ) |
fsal_posixdb_buildOnePath: Build the path of an object with only one Path in the parent table (usually a directory).
| p_conn | (input) Connection to the database |
| p_handle | (input) Handle of the object we want the path |
| path | (output) Path of the object |
Definition at line 301 of file MYSQL/posixdb_internal.c.
| int fsal_posixdb_cache_init | ( | ) |
Definition at line 27 of file MYSQL/posixdb_internal.c.
| void fsal_posixdb_CachePath | ( | posixfsal_handle_t * | p_handle, |
| fsal_path_t * | p_path | ||
| ) |
Definition at line 53 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t fsal_posixdb_deleteParent | ( | fsal_posixdb_conn * | p_conn, |
| unsigned long long | id, | ||
| unsigned int | ts, | ||
| unsigned long long | idparent, | ||
| unsigned int | tsparent, | ||
| char * | filename, | ||
| int | nlink | ||
| ) |
fsal_posixdb_deleteParent: Delete a parent entry. If the handle has no more links, then it is also deleted. Notice : do not use with a directory
| p_conn | (input) Connection to the database |
| id | (input) ID part of the handle of the object |
| ts | (input) Timestamp part of the handle of the parent directory |
| idparent | (input) ID part of the handle of the object |
| tsparent | (input) Timestamp part of the handle of the parent directory |
| filename | (input) Filename of the entry to delete |
| nlink | (input) Number of hardlink on the object |
Definition at line 551 of file MYSQL/posixdb_internal.c.
| int fsal_posixdb_GetInodeCache | ( | posixfsal_handle_t * | p_handle | ) |
Definition at line 140 of file MYSQL/posixdb_internal.c.
| int fsal_posixdb_GetPathCache | ( | posixfsal_handle_t * | p_handle, |
| fsal_path_t * | p_path | ||
| ) |
Definition at line 191 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t fsal_posixdb_internal_delete | ( | fsal_posixdb_conn * | p_conn, |
| unsigned long long | idparent, | ||
| unsigned int | tsparent, | ||
| char * | filename, | ||
| fsal_posixdb_fileinfo_t * | p_object_info | ||
| ) |
fsal_posixdb_internal_delete: Delete a Parent entry knowing its parent handle and its name
Definition at line 618 of file MYSQL/posixdb_internal.c.
| void fsal_posixdb_InvalidateCache | ( | ) |
Definition at line 170 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t fsal_posixdb_recursiveDelete | ( | fsal_posixdb_conn * | p_conn, |
| unsigned long long | id, | ||
| unsigned int | ts, | ||
| fsal_nodetype_t | ftype | ||
| ) |
fsal_posixdb_recursiveDelete: Delete a handle and all its entries in the Parent table. If the object is a directory, then all its entries will be recursively deleted.
| p_conn | (input) Connection to the database |
| id | (input) ID part of the handle |
| ts | (input) Timestamp part of the handle |
| ftype | (input) Type of the object (regular file, directory, ...) |
Definition at line 472 of file MYSQL/posixdb_internal.c.
| int fsal_posixdb_UpdateInodeCache | ( | posixfsal_handle_t * | p_handle | ) |
Definition at line 95 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t mysql_error_convert | ( | int | err | ) |
Definition at line 223 of file MYSQL/posixdb_internal.c.
| fsal_posixdb_status_t posixdb_internal_fillFileinfoFromStrValues | ( | fsal_posixdb_fileinfo_t * | p_info, |
| char * | devid_str, | ||
| char * | inode_str, | ||
| char * | nlink_str, | ||
| char * | ctime_str, | ||
| char * | ftype_str | ||
| ) |
Fill a fsal_posixdb_fileinfo_t struct from char* values.
| p_info | |
| devid_str | |
| inode_str | |
| nlink_str | |
| ctime_str | |
| ftype_str |
Definition at line 686 of file MYSQL/posixdb_internal.c.
1.7.3