Directory operations
[MySQL FS Kernel Module]


Functions

int rkfs_mkdir (struct inode *dir, struct dentry *dentry, int mode)
 Function for make new directory.
int rkfs_rmdir (struct inode *dir, struct dentry *dentry)
 Function for remove directory.

Variables

file_operations rkfs_dops

Function Documentation

int rkfs_mkdir ( struct inode *  dir,
struct dentry *  dentry,
int  mode 
)

Function for make new directory.

Create new directory in parent directory specified by dir parametr

Parameters:
dir Directory, where new dir should be created.
dentry Dentry representing name of directory, which should be created.
mode Mode of new directory.
Returns:
0 OK, or -EMLINK on DB error or PTR_ERR(inode) on inode creation error.

Definition at line 64 of file fs_dir.c.

References CMD_ER_NR, struct_command::command_nr, MAX_QUERY_LENGTH, struct_command::param, query(), ret_command, rkfs_atoi(), RKFS_DEF_QUERY_OK, rkfs_dops, and rkfs_iops.

int rkfs_rmdir ( struct inode *  dir,
struct dentry *  dentry 
)

Function for remove directory.

Remove directory specified in dentry

Parameters:
dir Dir from which should be dir removed.
dentry Dentry representing name of directory, which should be removed.
Returns:
OK on succes or -ENOTEMPTY when directory not empty, -EFAULT on other errors.

Definition at line 124 of file fs_dir.c.

References CMD_ER_NR, struct_command::command_nr, FSPDEBUG, MAX_QUERY_LENGTH, query(), ret_command, and RKFS_DEF_QUERY_OK.


Variable Documentation

struct file_operations rkfs_dops

Initial value:

 {
        read: generic_read_dir,
        readdir: rkfs_file_readdir,
        fsync: simple_sync_file
}
dir operations structure

Definition at line 46 of file fs_dir.c.

Referenced by rkfs_mkdir(), and rkfs_super_read_inode().


Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0