mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2687] [MERGED] Fixed bugs in removing xattrs func and and test for it #2711
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#2711
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2687
Author: @ggtakec
Created: 6/10/2025
Status: ✅ Merged
Merged: 6/26/2025
Merged by: @gaul
Base:
master← Head:fix/xattr_delete📝 Commits (1)
681d9e9Fixed bugs in removing xattrs func and and test for it📊 Changes
4 files changed (+106 additions, -22 deletions)
View changed files
📝
src/cache.cpp(+15 -8)📝
src/s3fs.cpp(+25 -2)📝
test/integration-test-main.sh(+54 -12)📝
test/test-utils.sh(+12 -0)📄 Description
Relevant Issue (if applicable)
n/a
Details
I found a bug in the
xattrsdeletion function.When
xattrsare deleted and no keys remain, thexattrheader itself should also be deleted, but this was not possible when the file was not open, etc. (so this is a bug.)I also discovered several flaws in
test_update_metadata_external_large_objectandtest_update_metadata_external_small_object, which testxattrs.One is that the test file names for adding and deleting
xattrsare the same.The other is that the reading of
xattrswas not checked after it was added or deleted.I fixed these, and the frequent failures of the above tests, especially on macos, were
fixed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.