Skip to content
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

vfs_fatfs: rm -r dir/ (trailing slash) fails #5329

Open
rite opened this issue Aug 22, 2024 · 1 comment
Open

vfs_fatfs: rm -r dir/ (trailing slash) fails #5329

rite opened this issue Aug 22, 2024 · 1 comment

Comments

@rite
Copy link
Contributor

rite commented Aug 22, 2024

The issue can be reproduced by executing run/bash with commit 6e4a5ce and issuing the following bash command:

bash-4.4# mkdir -p fatfs/test; echo "world" > fatfs/test/hello; rm -r fatfs/test/
(null): cannot remove 'fatfs/test/': Operation not permitted

It works without trailing slash:

bash-4.4# mkdir -p fatfs/test; echo "world" > fatfs/test/hello; rm -r fatfs/test

...and it also works with or without trailing slash using the ramfs:

bash-4.4# mkdir -p tmp/test; echo "world" > tmp/test/hello; rm -r tmp/test
bash-4.4# mkdir -p tmp/test; echo "world" > tmp/test/hello; rm -r tmp/test
rite added a commit to rite/genode that referenced this issue Aug 22, 2024
WIP commit to reproduce genodelabs#5329 interactively.
@rite rite changed the title vfs_fatfs: rm -r dir/ (traling slash) fails, if dir is not empty vfs_fatfs: rm -r dir/ (traling slash) fails Aug 22, 2024
@rite
Copy link
Contributor Author

rite commented Aug 22, 2024

This issue reminds me of #2686, but it seems to be specific to the fatfs VFS-plugin.

@rite rite changed the title vfs_fatfs: rm -r dir/ (traling slash) fails vfs_fatfs: rm -r dir/ (trailing slash) fails Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant