Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
d2ec1f3e
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d2ec1f3e
编写于
10月 01, 2015
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[DFS] remove st_blksize in the struct stat
上级
1ac6bc6c
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
5 addition
and
19 deletion
+5
-19
bsp/efm32/copy_this_file_dfs_elm.c
bsp/efm32/copy_this_file_dfs_elm.c
+0
-1
bsp/simulator/drivers/dfs_win32.c
bsp/simulator/drivers/dfs_win32.c
+0
-2
components/dfs/filesystems/devfs/devfs.c
components/dfs/filesystems/devfs/devfs.c
+2
-4
components/dfs/filesystems/elmfat/dfs_elm.c
components/dfs/filesystems/elmfat/dfs_elm.c
+0
-1
components/dfs/filesystems/jffs2/dfs_jffs2.c
components/dfs/filesystems/jffs2/dfs_jffs2.c
+1
-2
components/dfs/filesystems/nfs/dfs_nfs.c
components/dfs/filesystems/nfs/dfs_nfs.c
+0
-1
components/dfs/filesystems/ramfs/dfs_ramfs.c
components/dfs/filesystems/ramfs/dfs_ramfs.c
+0
-1
components/dfs/filesystems/romfs/dfs_romfs.c
components/dfs/filesystems/romfs/dfs_romfs.c
+0
-1
components/dfs/filesystems/uffs/dfs_uffs.c
components/dfs/filesystems/uffs/dfs_uffs.c
+1
-2
components/dfs/include/dfs_def.h
components/dfs/include/dfs_def.h
+0
-1
components/dfs/src/dfs_file.c
components/dfs/src/dfs_file.c
+0
-1
components/dfs/src/dfs_posix.c
components/dfs/src/dfs_posix.c
+0
-1
components/external/SQLite-3.8.1/src/os_rtthread.c
components/external/SQLite-3.8.1/src/os_rtthread.c
+1
-1
未找到文件。
bsp/efm32/copy_this_file_dfs_elm.c
浏览文件 @
d2ec1f3e
...
...
@@ -641,7 +641,6 @@ int dfs_elm_stat(struct dfs_filesystem *fs, const char *path, struct stat *st)
st
->
st_size
=
file_info
.
fsize
;
st
->
st_mtime
=
file_info
.
ftime
;
st
->
st_blksize
=
512
;
}
#if _USE_LFN
...
...
bsp/simulator/drivers/dfs_win32.c
浏览文件 @
d2ec1f3e
...
...
@@ -505,8 +505,6 @@ static int dfs_win32_stat(struct dfs_filesystem *fs, const char *path, struct st
st
->
st_mtime
=
time_tmp
.
QuadPart
;
}
st
->
st_blksize
=
0
;
FindClose
(
hFind
);
return
0
;
...
...
components/dfs/filesystems/devfs/devfs.c
浏览文件 @
d2ec1f3e
...
...
@@ -213,8 +213,7 @@ int dfs_device_fs_stat(struct dfs_filesystem *fs, const char *path, struct stat
st
->
st_size
=
0
;
st
->
st_mtime
=
0
;
st
->
st_blksize
=
512
;
return
DFS_STATUS_OK
;
}
else
...
...
@@ -238,8 +237,7 @@ int dfs_device_fs_stat(struct dfs_filesystem *fs, const char *path, struct stat
st
->
st_size
=
0
;
st
->
st_mtime
=
0
;
st
->
st_blksize
=
512
;
return
DFS_STATUS_OK
;
}
}
...
...
components/dfs/filesystems/elmfat/dfs_elm.c
浏览文件 @
d2ec1f3e
...
...
@@ -738,7 +738,6 @@ int dfs_elm_stat(struct dfs_filesystem *fs, const char *path, struct stat *st)
st
->
st_mode
&=
~
(
DFS_S_IWUSR
|
DFS_S_IWGRP
|
DFS_S_IWOTH
);
st
->
st_size
=
file_info
.
fsize
;
st
->
st_blksize
=
512
;
/* get st_mtime. */
{
...
...
components/dfs/filesystems/jffs2/dfs_jffs2.c
浏览文件 @
d2ec1f3e
...
...
@@ -331,7 +331,7 @@ static int dfs_jffs2_open(struct dfs_fd* file)
return
jffs2_result_to_dfs
(
result
);
}
/* save this pointer, it will be used when calling read()
wr
ite(),
/* save this pointer, it will be used when calling read()
��writ
e(),
flush(), lessk(), and will be rt_free when calling close()*/
file
->
data
=
jffs2_file
;
file
->
pos
=
jffs2_file
->
f_offset
;
...
...
@@ -686,7 +686,6 @@ static int dfs_jffs2_stat(struct dfs_filesystem* fs, const char *path, struct st
st
->
st_dev
=
0
;
st
->
st_size
=
s
.
st_size
;
st
->
st_mtime
=
s
.
st_mtime
;
st
->
st_blksize
=
1
;
//fixme: what's this field?
return
0
;
}
...
...
components/dfs/filesystems/nfs/dfs_nfs.c
浏览文件 @
d2ec1f3e
...
...
@@ -850,7 +850,6 @@ int nfs_stat(struct dfs_filesystem *fs, const char *path, struct stat *st)
st
->
st_size
=
info
->
size
;
st
->
st_mtime
=
info
->
mtime
.
seconds
;
st
->
st_blksize
=
512
;
xdr_free
((
xdrproc_t
)
xdr_GETATTR3res
,
(
char
*
)
&
res
);
xdr_free
((
xdrproc_t
)
xdr_nfs_fh3
,
(
char
*
)
handle
);
...
...
components/dfs/filesystems/ramfs/dfs_ramfs.c
浏览文件 @
d2ec1f3e
...
...
@@ -292,7 +292,6 @@ int dfs_ramfs_stat(struct dfs_filesystem *fs,
st
->
st_size
=
dirent
->
size
;
st
->
st_mtime
=
0
;
st
->
st_blksize
=
512
;
return
DFS_STATUS_OK
;
}
...
...
components/dfs/filesystems/romfs/dfs_romfs.c
浏览文件 @
d2ec1f3e
...
...
@@ -245,7 +245,6 @@ int dfs_romfs_stat(struct dfs_filesystem *fs, const char *path, struct stat *st)
st
->
st_size
=
dirent
->
size
;
st
->
st_mtime
=
0
;
st
->
st_blksize
=
512
;
return
DFS_STATUS_OK
;
}
...
...
components/dfs/filesystems/uffs/dfs_uffs.c
浏览文件 @
d2ec1f3e
...
...
@@ -347,7 +347,7 @@ static int dfs_uffs_open(struct dfs_fd* file)
return
uffs_result_to_dfs
(
uffs_get_error
());
}
/* save this pointer, it will be used when calling read()write(),
/* save this pointer, it will be used when calling read()
��
write(),
* flush(), seek(), and will be free when calling close()*/
file
->
data
=
(
void
*
)
fd
;
...
...
@@ -619,7 +619,6 @@ static int dfs_uffs_stat(struct dfs_filesystem* fs, const char *path, struct sta
st
->
st_mtime
=
s
.
st_mtime
;
mtd
=
RT_MTD_NAND_DEVICE
(
fs
->
dev_id
);
st
->
st_blksize
=
mtd
->
page_size
;
return
0
;
}
...
...
components/dfs/include/dfs_def.h
浏览文件 @
d2ec1f3e
...
...
@@ -261,7 +261,6 @@ struct stat
rt_uint16_t
st_mode
;
rt_uint32_t
st_size
;
rt_time_t
st_mtime
;
rt_uint32_t
st_blksize
;
};
struct
statfs
...
...
components/dfs/src/dfs_file.c
浏览文件 @
d2ec1f3e
...
...
@@ -392,7 +392,6 @@ int dfs_file_stat(const char *path, struct stat *buf)
buf
->
st_size
=
0
;
buf
->
st_mtime
=
0
;
buf
->
st_blksize
=
512
;
/* release full path */
rt_free
(
fullpath
);
...
...
components/dfs/src/dfs_posix.c
浏览文件 @
d2ec1f3e
...
...
@@ -368,7 +368,6 @@ int fstat(int fildes, struct stat *buf)
buf
->
st_size
=
d
->
size
;
buf
->
st_mtime
=
0
;
buf
->
st_blksize
=
512
;
fd_put
(
d
);
...
...
components/external/SQLite-3.8.1/src/os_rtthread.c
浏览文件 @
d2ec1f3e
...
...
@@ -1728,7 +1728,7 @@ static int fcntlSizeHint(rtthreadFile *pFile, i64 nByte){
** is the same technique used by glibc to implement posix_fallocate()
** on systems that do not have a real fallocate() system call.
*/
int
nBlk
=
buf
.
st_blksize
;
/* File-system block size */
int
nBlk
=
4096
;
// no blksize in RT-Thread, use 4096.
/* File-system block size */
i64
iWrite
;
/* Next offset to write to */
if
(
robust_ftruncate
(
pFile
->
h
,
nSize
)
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录