#include "fs.h"#include <string.h>#include <sys/stat.h>#include <sys/statfs.h>#include <minix/vfsif.h>#include <minix/callnr.h>#include <minix/com.h>#include <minix/keymap.h>#include <minix/const.h>#include <minix/endpoint.h>#include <minix/u64.h>#include <unistd.h>#include "fproc.h"#include "vmnt.h"#include "vnode.h"#include "param.h"Go to the source code of this file.
Defines | |
| #define | fs_sendrec(e, m) fs_sendrec_f(__FILE__, __LINE__, (e), (m)) |
Functions | |
| FORWARD | _PROTOTYPE (int fs_sendrec_f,(char *file, int line, endpoint_t fs_e, message *reqm)) |
| PUBLIC int | req_breadwrite (endpoint_t fs_e, endpoint_t user_e, dev_t dev, u64_t pos, unsigned int num_of_bytes, char *user_addr, int rw_flag, u64_t *new_posp, unsigned int *cum_iop) |
| PUBLIC int | req_chmod (int fs_e, ino_t inode_nr, mode_t rmode, mode_t *new_modep) |
| PUBLIC int | req_chown (endpoint_t fs_e, ino_t inode_nr, uid_t newuid, gid_t newgid, mode_t *new_modep) |
| int | req_create (int fs_e, ino_t inode_nr, int omode, uid_t uid, gid_t gid, char *path, node_details_t *res) |
| PUBLIC int | req_flush (endpoint_t fs_e, dev_t dev) |
| PUBLIC int | req_fstatfs (int fs_e, int who_e, char *buf) |
| PUBLIC int | req_ftrunc (endpoint_t fs_e, ino_t inode_nr, off_t start, off_t end) |
| PUBLIC int | req_getdents (endpoint_t fs_e, ino_t inode_nr, u64_t pos, char *buf, size_t size, u64_t *new_pos) |
| PUBLIC int | req_inhibread (endpoint_t fs_e, ino_t inode_nr) |
| PUBLIC int | req_link (endpoint_t fs_e, ino_t link_parent, char *lastc, ino_t linked_file) |
| PUBLIC int | req_lookup (endpoint_t fs_e, ino_t dir_ino, ino_t root_ino, uid_t uid, gid_t gid, int flags, lookup_res_t *res) |
| PUBLIC int | req_mkdir (endpoint_t fs_e, ino_t inode_nr, char *lastc, uid_t uid, gid_t gid, mode_t dmode) |
| PUBLIC int | req_mknod (endpoint_t fs_e, ino_t inode_nr, char *lastc, uid_t uid, gid_t gid, mode_t dmode, dev_t dev) |
| PUBLIC int | req_mountpoint (endpoint_t fs_e, ino_t inode_nr) |
| PUBLIC int | req_newnode (endpoint_t fs_e, uid_t uid, gid_t gid, mode_t dmode, dev_t dev, struct node_details *res) |
| PUBLIC int | req_newdriver (endpoint_t fs_e, Dev_t dev, endpoint_t driver_e) |
| PUBLIC int | req_putnode (int fs_e, ino_t inode_nr, int count) |
| PUBLIC int | req_rdlink (endpoint_t fs_e, ino_t inode_nr, endpoint_t who_e, char *buf, size_t len) |
| PUBLIC int | req_readsuper (endpoint_t fs_e, char *label, dev_t dev, int readonly, int isroot, struct node_details *res_nodep) |
| PUBLIC int | req_readwrite (endpoint_t fs_e, ino_t inode_nr, u64_t pos, int rw_flag, endpoint_t user_e, char *user_addr, unsigned int num_of_bytes, u64_t *new_posp, unsigned int *cum_iop) |
| PUBLIC int | req_rename (endpoint_t fs_e, ino_t old_dir, char *old_name, ino_t new_dir, char *new_name) |
| PUBLIC int | req_rmdir (endpoint_t fs_e, ino_t inode_nr, char *lastc) |
| PUBLIC int | req_slink (endpoint_t fs_e, ino_t inode_nr, char *lastc, endpoint_t who_e, char *path_addr, unsigned short path_length, uid_t uid, gid_t gid) |
| PUBLIC int | req_stat (int fs_e, ino_t inode_nr, int who_e, char *buf, int pos) |
| PUBLIC int | req_sync (endpoint_t fs_e) |
| PUBLIC int | req_unlink (endpoint_t fs_e, ino_t inode_nr, char *lastc) |
| PUBLIC int | req_unmount (endpoint_t fs_e) |
| PUBLIC int | req_utime (endpoint_t fs_e, ino_t inode_nr, time_t actime, time_t modtime) |
| PRIVATE int | fs_sendrec_f (char *file, int line, endpoint_t fs_e, message *reqm) |
| FORWARD _PROTOTYPE | ( | int | fs_sendrec_f, | |
| (char *file, int line, endpoint_t fs_e, message *reqm) | ||||
| ) |
| PRIVATE int fs_sendrec_f | ( | char * | file, | |
| int | line, | |||
| endpoint_t | fs_e, | |||
| message * | reqm | |||
| ) |
| PUBLIC int req_breadwrite | ( | endpoint_t | fs_e, | |
| endpoint_t | user_e, | |||
| dev_t | dev, | |||
| u64_t | pos, | |||
| unsigned int | num_of_bytes, | |||
| char * | user_addr, | |||
| int | rw_flag, | |||
| u64_t * | new_posp, | |||
| unsigned int * | cum_iop | |||
| ) |
| PUBLIC int req_chmod | ( | int | fs_e, | |
| ino_t | inode_nr, | |||
| mode_t | rmode, | |||
| mode_t * | new_modep | |||
| ) |
| PUBLIC int req_chown | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| uid_t | newuid, | |||
| gid_t | newgid, | |||
| mode_t * | new_modep | |||
| ) |
| int req_create | ( | int | fs_e, | |
| ino_t | inode_nr, | |||
| int | omode, | |||
| uid_t | uid, | |||
| gid_t | gid, | |||
| char * | path, | |||
| node_details_t * | res | |||
| ) |
| PUBLIC int req_flush | ( | endpoint_t | fs_e, | |
| dev_t | dev | |||
| ) |
| PUBLIC int req_fstatfs | ( | int | fs_e, | |
| int | who_e, | |||
| char * | buf | |||
| ) |
| PUBLIC int req_ftrunc | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| off_t | start, | |||
| off_t | end | |||
| ) |
| PUBLIC int req_getdents | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| u64_t | pos, | |||
| char * | buf, | |||
| size_t | size, | |||
| u64_t * | new_pos | |||
| ) |
| PUBLIC int req_inhibread | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr | |||
| ) |
| PUBLIC int req_link | ( | endpoint_t | fs_e, | |
| ino_t | link_parent, | |||
| char * | lastc, | |||
| ino_t | linked_file | |||
| ) |
| PUBLIC int req_lookup | ( | endpoint_t | fs_e, | |
| ino_t | dir_ino, | |||
| ino_t | root_ino, | |||
| uid_t | uid, | |||
| gid_t | gid, | |||
| int | flags, | |||
| lookup_res_t * | res | |||
| ) |
| PUBLIC int req_mkdir | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| char * | lastc, | |||
| uid_t | uid, | |||
| gid_t | gid, | |||
| mode_t | dmode | |||
| ) |
| PUBLIC int req_mknod | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| char * | lastc, | |||
| uid_t | uid, | |||
| gid_t | gid, | |||
| mode_t | dmode, | |||
| dev_t | dev | |||
| ) |
| PUBLIC int req_mountpoint | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr | |||
| ) |
| PUBLIC int req_newdriver | ( | endpoint_t | fs_e, | |
| Dev_t | dev, | |||
| endpoint_t | driver_e | |||
| ) |
| PUBLIC int req_newnode | ( | endpoint_t | fs_e, | |
| uid_t | uid, | |||
| gid_t | gid, | |||
| mode_t | dmode, | |||
| dev_t | dev, | |||
| struct node_details * | res | |||
| ) |
| PUBLIC int req_putnode | ( | int | fs_e, | |
| ino_t | inode_nr, | |||
| int | count | |||
| ) |
| PUBLIC int req_rdlink | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| endpoint_t | who_e, | |||
| char * | buf, | |||
| size_t | len | |||
| ) |
| PUBLIC int req_readsuper | ( | endpoint_t | fs_e, | |
| char * | label, | |||
| dev_t | dev, | |||
| int | readonly, | |||
| int | isroot, | |||
| struct node_details * | res_nodep | |||
| ) |
| PUBLIC int req_readwrite | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| u64_t | pos, | |||
| int | rw_flag, | |||
| endpoint_t | user_e, | |||
| char * | user_addr, | |||
| unsigned int | num_of_bytes, | |||
| u64_t * | new_posp, | |||
| unsigned int * | cum_iop | |||
| ) |
| PUBLIC int req_rename | ( | endpoint_t | fs_e, | |
| ino_t | old_dir, | |||
| char * | old_name, | |||
| ino_t | new_dir, | |||
| char * | new_name | |||
| ) |
| PUBLIC int req_rmdir | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| char * | lastc | |||
| ) |
| PUBLIC int req_slink | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| char * | lastc, | |||
| endpoint_t | who_e, | |||
| char * | path_addr, | |||
| unsigned short | path_length, | |||
| uid_t | uid, | |||
| gid_t | gid | |||
| ) |
| PUBLIC int req_stat | ( | int | fs_e, | |
| ino_t | inode_nr, | |||
| int | who_e, | |||
| char * | buf, | |||
| int | pos | |||
| ) |
| PUBLIC int req_sync | ( | endpoint_t | fs_e | ) |
| PUBLIC int req_unlink | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| char * | lastc | |||
| ) |
| PUBLIC int req_unmount | ( | endpoint_t | fs_e | ) |
| PUBLIC int req_utime | ( | endpoint_t | fs_e, | |
| ino_t | inode_nr, | |||
| time_t | actime, | |||
| time_t | modtime | |||
| ) |
1.5.8