mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #2395] rm: can't remove 'test': I/O error #1179
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FlowerBirds on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2395
Additional Information
Version of s3fs being used (
s3fs --version)s3fs 1.19
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)Kernel information (
uname -r)5.15.133.1-microsoft-standard-WSL2
GNU/Linux Distribution, if applicable (
cat /etc/os-release)How to run s3fs, if applicable
[x] command line
[] /etc/fstab
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
Step1 unzip file
Step2 remove s3fs-fuse-1.93 folder
By observing the Wireshark packet capture, it was found that during the decompression process, the test folder was first created by calling PUT /data/test4/s3fs-fuse-1.93/test/, and then the files under the /data/test4/s3fs-fuse-1.93/test/ folder were created by calling PUT. After the files under the test folder were uploaded, PUT /data/test4/s3fs-fuse-1.93/test/ and PUT /data/test4/s3fs-fuse-1.93/ were called once again and successfully created. When manually creating a folder using mkdir test, only one PUT method was called, so the manually created folder can be deleted. However, when deleting the folder after decompression, it cannot be deleted, resulting in an I/O error.



Question:Why is it called twice to create a folder during decompression?
@FlowerBirds commented on GitHub (Jan 5, 2024):
I find
chmodwill send PUT method to create folder again, then delete failed.@FlowerBirds commented on GitHub (Jan 5, 2024):
https://github.com/minio/minio/issues/18739
@ggtakec commented on GitHub (Feb 12, 2024):
@FlowerBirds
Both creating and deleting directories are working normally.
We need a little more information to solve your problem.
If you are able, try the following:
dbglevelandcurldbgoptions and collect logs.This log can help detect problems.
Thanks in advance for your assistance.
@monoflash commented on GitHub (Oct 24, 2024):
I have the same problem.
Any directories that were copied are not deleted. But the directories that I created myself are being deleted.
I suspect that some attributes are not working correctly somehow.
@monoflash commented on GitHub (Oct 24, 2024):
I have now found out the reason. If you create a directory and then change attributes of the created directory, you will not be able to delete it. And if you create a directory and do not change anything in the directory, then it is can deleted.
s3fs is mounted from under the user, not a root user.