Lines Matching refs:path
78 struct dfs_filesystem *dfs_filesystem_lookup(const char *path) in dfs_filesystem_lookup() argument
86 RT_ASSERT(path); in dfs_filesystem_lookup()
95 if ((iter->path == NULL) || (iter->ops == NULL)) in dfs_filesystem_lookup()
98 fspath = strlen(iter->path); in dfs_filesystem_lookup()
100 || (strncmp(iter->path, path, fspath) != 0)) in dfs_filesystem_lookup()
104 if (fspath > 1 && (strlen(path) > fspath) && (path[fspath] != '/')) in dfs_filesystem_lookup()
125 const char *path = NULL; in dfs_filesystem_get_mounted_path() local
136 path = iter->path; in dfs_filesystem_get_mounted_path()
144 return path; in dfs_filesystem_get_mounted_path()
215 const char *path, in dfs_mount() argument
264 fullpath = dfs_normalize_path(NULL, path); in dfs_mount()
298 else if (strcmp(iter->path, path) == 0) in dfs_mount()
313 fs->path = fullpath; in dfs_mount()
388 if ((iter->path != NULL) && (strcmp(iter->path, fullpath) == 0)) in dfs_unmount()
406 if (fs->path != NULL) in dfs_unmount()
407 rt_free(fs->path); in dfs_unmount()
487 int dfs_statfs(const char *path, struct statfs *buffer) in dfs_statfs() argument
491 fs = dfs_filesystem_lookup(path); in dfs_statfs()
509 if (mount_table[index].path == NULL) break; in dfs_mount_table()
512 mount_table[index].path, in dfs_mount_table()
518 mount_table[index].path); in dfs_mount_table()
540 if (mount_table[index].path == NULL) break; in dfs_mount_device()
545 mount_table[index].path, in dfs_mount_device()
551 mount_table[index].path); in dfs_mount_device()
555 mount_table[index].path); in dfs_mount_device()
597 if (fs->path != NULL) in dfs_unmount_device()
598 rt_free(fs->path); in dfs_unmount_device()
623 int df(const char *path) in df() argument
633 result = dfs_statfs(path ? path : NULL, &buffer); in df()