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 |
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
dir | Directory, where new dir should be created. | |
dentry | Dentry representing name of directory, which should be created. | |
mode | Mode of new directory. |
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
dir | Dir from which should be dir removed. | |
dentry | Dentry representing name of directory, which should be removed. |
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.
struct file_operations rkfs_dops |
Initial value:
{ read: generic_read_dir, readdir: rkfs_file_readdir, fsync: simple_sync_file }
Definition at line 46 of file fs_dir.c.
Referenced by rkfs_mkdir(), and rkfs_super_read_inode().