raifグループ

raif_commit_write

mmap.c STATIC int raif_commit_write(file_t *file, page_t *page, unsigned from, unsigned to) { int err = -ENOMEM; inode_t *inode; int bnum, bindex = 0; unsigned page_index, hidden_page_index; struct iattr new...

raif_writepage

mmap.c #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) STATIC int raif_writepage(page_t *page) #else STATIC int raif_writepage(page_t *page, struct writeback_control *wbc) #endif { int err = -EIO; inode_t *inode; unsigned...

inode.c

dentry_t *raif_lookup_backend(inode_t *dir, dentry_t *dentry, int interpose_flag, struct nameidata *nd) dentry_t * raif_lookup(inode_t *dir, dentry_t *dentry, struct nameidata* nd) STATIC inline dentry_t* raif_lookup_branch(dentry_t* dentry, int bi...

raif_lookup_branch

inode.c STATIC inline dentry_t* raif_lookup_branch(dentry_t* dentry, int bindex, struct nameidata *nd) { /*#ifdef RAIF_LB struct timeval b4, af; #endif*/ struct nameidata newnd; dentry_t* lower_dentry, *hidden_parent; ...

raif_rule_lookup

rules.c /* This function assumes that the file does not yet exist */ int raif_rule_lookup(dentry_t* dentry) { struct raif_dentry_info* rdi = dtopd(dentry); struct raif_dentry_info* rdi_p = dtopd(dentry->d_parent); dent...

rules.c

int raif_rule_lookup(dentry_t* dentry) int static raif_rule_regexp(char* RegExp, const char* name)

raif_rule_regexp

rules.c /* returns 0 if string does not match a regexp */ /* returns 1 if string matches a regexp */ /* returns 2 if string == regexp */ int static raif_rule_regexp(char* RegExp, const char* name) { char *regexp = NULL; char *tmpre...

raif.h

struct raif_sb_info struct raif_dentry_info struct rule

struct rule

raif.h #ifdef RAIF_TAG struct rule { struct rule* next; int b_num; int level; int start_branch; unsigned int striping_unit_shift; unsigned int ...