-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psh: some binaries aren't visible when type ls command #194
Comments
Please specify the |
The problem doesn't occur, when building all components. Please try build using following command: |
Missing commands from Github Actions runner (phoenix-rtos/phoenix-rtos-tests#52): mkdir, mount, ping, runfile, top |
I can confirm that the issue is present in the disk file produced as an artifact of CI showcasing the problem. Extracted the ext2 partition and dd if=phoenix-ia32-generic.disk of=part.ext2 skip=4096 count=100000 bs=512
e2ls part.ext2:/bin/ I don't know if this is an ext2 issue of |
It returns correct list with all commands, when I use |
Seems to work properly now (5f7a0eb phoenix-rtos-project). Test case to cover it is present in ls tests: phoenix-rtos/phoenix-rtos-tests#52 |
target = ia32-generic - qemu
For example here 'ls' binary isn't visible in bin.
'ls' uses 'readdir' function, which reads subsequent files in chosen directory. It seems like that files aren't visible for 'readdir' also. Mentioned binaries are present in _fs directory on host-pc and can be executed using exec.
The problem occurs, when there is some larger amount of binaries in a directory, because when building without test component all executable files are visible.
When creating even several hundreds of files (not executable, just normal files) using touch the problem doesn't occur.
Test with test case reproducing issue (assert_ls_pshcmds: checking if all psh commands are listed in bin):
phoenix-rtos/phoenix-rtos-tests#52
The text was updated successfully, but these errors were encountered: