Lines Matching refs:stat
607 int dfs_file_stat(const char *path, struct stat *buf) in dfs_file_stat()
627 if (fs->ops->stat == NULL) in dfs_file_stat()
637 result = fs->ops->stat(fs, fullpath, buf); in dfs_file_stat()
643 result = fs->ops->stat(fs, subdir, buf); in dfs_file_stat()
789 struct stat stat; in ls() local
821 rt_memset(&stat, 0, sizeof(struct stat)); in ls()
828 if (dfs_file_stat(fullpath, &stat) == 0) in ls()
831 if (S_ISDIR(stat.st_mode)) in ls()
837 rt_kprintf("%-25lu\n", (unsigned long)stat.st_size); in ls()
961 struct stat stat; in copydir() local
996 rt_memset(&stat, 0, sizeof(struct stat)); in copydir()
997 if (dfs_file_stat(src_entry_full, &stat) != 0) in copydir()
1003 if (S_ISDIR(stat.st_mode)) in copydir()
1043 struct stat stat; in copy() local
1047 if (dfs_file_stat(src, &stat) < 0) in copy()
1052 if (S_ISDIR(stat.st_mode)) in copy()
1057 if (dfs_file_stat(dst, &stat) < 0) in copy()
1063 if (S_ISDIR(stat.st_mode)) in copy()