Re: [PATCH] jffs2: fix nothing output for "ls" command

2020-06-03 Thread Richard Weinberger
On Fri, May 29, 2020 at 5:38 AM Zhe Li wrote: > > Recently I find a bug that I get nothing with shell > command "ls". The test steps are listed below. > 1. cd $JFFS2_MOUNT_DIR > 2. touch file > 3. ls > > Finally I find that when command "ls" going into > function jffs2_readdir(), it get non-zero r

[PATCH] jffs2: fix nothing output for "ls" command

2020-05-28 Thread Zhe Li
Recently I find a bug that I get nothing with shell command "ls". The test steps are listed below. 1. cd $JFFS2_MOUNT_DIR 2. touch file 3. ls Finally I find that when command "ls" going into function jffs2_readdir(), it get non-zero return value from function dir_emit(). So I get nothing from "ls"