TacOS
0.2
|
Instance d'un couple FS/Device monté.
#include <vfs.h>
Champs de données | |
file_system_t * | fs |
open_file_descriptor * | device |
struct _dentry_t *(* | getroot )(struct _fs_instance_t *) |
struct _dentry_t *(* | lookup )(struct _fs_instance_t *, struct _dentry_t *, const char *) |
int(* | mkdir )(struct _inode_t *, struct _dentry_t *, mode_t) |
int(* | mknod )(struct _inode_t *, struct _dentry_t *, mode_t, dev_t) |
int(* | stat )(struct _inode_t *, struct stat *) |
int(* | unlink )(struct _inode_t *, struct _dentry_t *) |
int(* | rmdir )(struct _inode_t *, struct _dentry_t *) |
int(* | truncate )(struct _inode_t *, off_t size) |
int(* | setattr )(struct _inode_t *inode, struct _file_attributes_t *attr) |
int(* | rename )(struct _inode_t *old_dir, struct _dentry_t *old_dentry, struct _inode_t *new_dir, struct _dentry_t *new_dentry) |
open_file_descriptor* _fs_instance_t::device |
Device utilisé.
file_system_t* _fs_instance_t::fs |
Pointeur vers le FS utilisé.
struct _dentry_t*(* _fs_instance_t::getroot)(struct _fs_instance_t *) |
Noeud racine.
struct _dentry_t*(* _fs_instance_t::lookup)(struct _fs_instance_t *, struct _dentry_t *, const char *) |
Résolution path.
Création d'un noeud.
int(* _fs_instance_t::rename)(struct _inode_t *old_dir, struct _dentry_t *old_dentry, struct _inode_t *new_dir, struct _dentry_t *new_dentry) |
Renomme ou déplace un fichier.
int(* _fs_instance_t::setattr)(struct _inode_t *inode, struct _file_attributes_t *attr) |
Modifie certains paramètres.