Lines Matching refs:fs

187     struct dfs_filesystem *fs;  in dfs_file_open()  local
220 fs = dfs_filesystem_lookup(fullpath); in dfs_file_open()
221 if (fs == NULL) in dfs_file_open()
237 LOG_D("open in filesystem:%s", fs->ops->name); in dfs_file_open()
238 vnode->fs = fs; /* set file system */ in dfs_file_open()
239 vnode->fops = fs->ops->fops; /* set file ops */ in dfs_file_open()
245 if (!(fs->ops->flags & DFS_FS_FLAG_FULLPATH)) in dfs_file_open()
247 if (dfs_subdir(fs->path, fullpath) == NULL) in dfs_file_open()
250 vnode->path = rt_strdup(dfs_subdir(fs->path, fullpath)); in dfs_file_open()
488 struct dfs_filesystem *fs; in dfs_file_unlink() local
505 if ((fs = dfs_filesystem_lookup(fullpath)) == NULL) in dfs_file_unlink()
511 if (fs->ops->unlink != NULL) in dfs_file_unlink()
513 if (!(fs->ops->flags & DFS_FS_FLAG_FULLPATH)) in dfs_file_unlink()
515 if (dfs_subdir(fs->path, fullpath) == NULL) in dfs_file_unlink()
516 result = fs->ops->unlink(fs, "/"); in dfs_file_unlink()
518 result = fs->ops->unlink(fs, dfs_subdir(fs->path, fullpath)); in dfs_file_unlink()
521 result = fs->ops->unlink(fs, fullpath); in dfs_file_unlink()
611 struct dfs_filesystem *fs; in dfs_file_stat() local
619 if ((fs = dfs_filesystem_lookup(fullpath)) == NULL) in dfs_file_stat()
627 if (fs->ops->stat == NULL) in dfs_file_stat()
635 if (fs->ops->flags & DFS_FS_FLAG_FULLPATH) in dfs_file_stat()
637 result = fs->ops->stat(fs, fullpath, buf); in dfs_file_stat()
641 const char *subdir = dfs_subdir(fs->path, fullpath); in dfs_file_stat()
643 result = fs->ops->stat(fs, subdir, buf); in dfs_file_stat()