fix: toybox命令升级
【背景】liteos_a toybox 命令升级升级 【修改方案】 1、help命令列表不支持命令删除。 2、cp命令和mv命令拷贝文件失败和文件损坏等问题修复。 3、修复du命令统计nfs文件大小为0问题修复。 4、修复ls命令nfs文件时间打印信息有误问题。 5、更新命令不支持入参列表。 re #I41N2A Signed-off-by: yansira <yansira@hotmail.com> Change-Id: I5f5b82e33ba9193ae06e9547182d5b7bac0a3b44
This commit is contained in:
@@ -807,6 +807,11 @@ int VfsJffs2Stat(struct Vnode *pVnode, struct stat *buf)
|
||||
buf->st_mtime = node->i_mtime;
|
||||
buf->st_ctime = node->i_ctime;
|
||||
|
||||
/* Adapt to kstat member long tv_sec */
|
||||
buf->__st_atim32.tv_sec = (long)node->i_atime;
|
||||
buf->__st_mtim32.tv_sec = (long)node->i_mtime;
|
||||
buf->__st_ctim32.tv_sec = (long)node->i_ctime;
|
||||
|
||||
LOS_MuxUnlock(&g_jffs2FsLock);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user