#include "fsc_device.h"
#include "../parser/parser.h"
Go to the source code of this file.
different variables use by MySQLFS | |
| int | result |
| struct_command | ret_command |
| char | out_buf [OUT_BUF_LENGTH] |
| int | query (const char *command, int command_lenght) |
| Function to send message to deamon. | |
| void | rkfs_deamon_test (void) |
| Function for testing deamon. | |
Defines | |
| #define | RKFS_DEF_QUERY_OK 0 |
| #define | RKFS_DEF_QUERY_ERROR -1 |
| #define | FILE_INODE_NUMBER 2 |
| #define | OUT_BUF_LENGTH MAX_BUFFER_LENGTH |
| #define | FS_DEBUG |
File system constants | |
| #define | RKFS_MAGIC 0xabcd |
| #define | RKFS_NAME "rkfs" |
| #define | RKFS_BLOCKSIZE 4096 |
| #define | RKFS_BLOCKSIZE_BITS 10 |
| #define | RKFS_DIRECTORY_BASE 10000 |
| #define | RKFS_ROOT_INODE RKFS_DIRECTORY_BASE + 1 |
Macros to help debugging | |
| #define | FSPDEBUG(fmt, args...) fprintf(stderr, fmt, ## args) |
| #define | FSPINFO(fmt, args...) fprintf(stdout, fmt, ## args) |
| #define | FSPRETCMD() fprintf (stderr, "RKFS: ret_command=(ver:'%s', cmd:'%s', prm:'%s', dta:'%s')\n", ret_command.version, ret_command.command, ret_command.param, ret_command.data) |
Functions | |
declaration of functions defines in fs_inode.c | |
| int | rkfs_get_sb (struct file_system_type *fs_type, int flags, const char *devname, void *data, struct vfsmount *mnt) |
| Function to get super block. | |
| void | rkfs_kill_sb (struct super_block *) |
| Kill super block. | |
| void | rkfs_super_read_inode (struct inode *inode) |
| Super read inode. | |
| int | rkfs_super_write_inode (struct inode *inode, int sync) |
| Super write inode. | |
| void | rkfs_super_delete_inode (struct inode *) |
| Delete inode. | |
| dentry * | rkfs_inode_lookup (struct inode *parent_inode, struct dentry *dentry, struct nameidata *) |
| Inode lookup. | |
| int | rkfs_inode_create (struct inode *, struct dentry *, int mode, struct nameidata *) |
| Inode create. | |
| void | rkfs_inode_truncate (struct inode *inode) |
| Truncate inode. | |
| int | rkfs_inode_unlink (struct inode *, struct dentry *) |
| Inode unlink. | |
| int | rkfs_inode_rename (struct inode *, struct dentry *, struct inode *, struct dentry *) |
| Remame. | |
declaration of functions defines in fs_file.c | |
| int | rkfs_file_open (struct inode *, struct file *) |
| Function for open file. | |
| int | rkfs_file_readdir (struct file *file, void *dirent, filldir_t filldir) |
| Read dir. | |
| int | rkfs_file_release (struct inode *, struct file *) |
| Function for release file. | |
| ssize_t | rkfs_file_read (struct file *, char __user *, size_t, loff_t *) |
| Function for read from file. | |
| ssize_t | rkfs_file_write (struct file *, const char __user *, size_t, loff_t *) |
| Function for write to file. | |
| loff_t | rkfs_file_llseek (struct file *, loff_t, int) |
| Lseek. | |
declaration of functions defines in fs_dir.c | |
| int | rkfs_mkdir (struct inode *, struct dentry *, int) |
| Function for make new directory. | |
| int | rkfs_rmdir (struct inode *, struct dentry *) |
| Function for remove directory. | |
declaration of functions defines in fs_lib.c | |
| |
| int | rkfs_next_data_item (char **, char *) |
| Read next data item from a answer received from a deamon. | |
| int | rkfs_atoi (char *) |
| Atoi function. | |
Variables | |
declaration of structures used by VFS | |
| super_operations | rkfs_sops |
| inode_operations | rkfs_iops |
| file_operations | rkfs_fops |
| file_operations | rkfs_dops |
| file_system_type | rkfs |
| address_space_operations | rkfs_aops |
Definition in file rkfs.h.
1.5.0