fix readdir, rename

Change-Id: Ic443742e125915f0e5332a338dedea5c40348928
This commit is contained in:
mucor
2021-03-24 16:38:23 +08:00
parent a50adf047a
commit 1884fa0523
8 changed files with 25 additions and 10 deletions

View File

@@ -474,7 +474,7 @@ int VfsJffs2Readdir(struct Vnode *pVnode, struct fs_dirent_s *dir)
LOS_MuxLock(&g_jffs2FsLock, (uint32_t)JFFS2_WAITING_FOREVER);
/* set jffs2_d */
while (i < MAX_DIRENT_NUM && i < dir->read_cnt) {
while (i < dir->read_cnt) {
ret = jffs2_readdir((struct jffs2_inode *)pVnode->data, &dir->fd_position,
&dir->fd_int_offset, &dir->fd_dir[i]);
if (ret) {