|
|
@ -494,7 +494,7 @@ int dfs_tmpfs_stat(struct dfs_filesystem *fs, |
|
|
if (d_file == NULL) |
|
|
if (d_file == NULL) |
|
|
return -ENOENT; |
|
|
return -ENOENT; |
|
|
|
|
|
|
|
|
st->st_dev = (rt_device_t)dfs_filesystem_lookup(fs->path); |
|
|
st->st_dev = fs->dev_id;//(rt_device_t)dfs_filesystem_lookup(fs->path)
|
|
|
st->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH | |
|
|
st->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH | |
|
|
S_IWUSR | S_IWGRP | S_IWOTH; |
|
|
S_IWUSR | S_IWGRP | S_IWOTH; |
|
|
if (d_file->type == TMPFS_TYPE_DIR) |
|
|
if (d_file->type == TMPFS_TYPE_DIR) |
|
|
|