mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[PR #1727] [MERGED] Added fake_diskfree option to deceive free disk space for test #2143
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#2143
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/1727
Author: @ggtakec
Created: 7/22/2021
Status: ✅ Merged
Merged: 8/2/2021
Merged by: @gaul
Base:
master← Head:add_fake_diskfree_opt📝 Commits (1)
b274b3dAdded fake_diskfree option to deceive free disk space for test📊 Changes
4 files changed (+38 additions, -16 deletions)
View changed files
📝
src/fdcache.cpp(+19 -1)📝
src/fdcache.h(+3 -1)📝
src/s3fs.cpp(+13 -0)📝
test/small-integration-test.sh(+3 -14)📄 Description
Relevant Issue (if applicable)
#1722
Details
The
ensure_diskfreeoption is an option to protect the free disk space.The reason for not checking the disk usage of s3fs is that it causes performance degradation. (like the
ducommand)So that s3fs is using disk stat information will improve performance.
That's why we provide the
ensure_diskfreeoption.However, there are some issues that are very difficult to test, such as Github Actions.
This is because the Runner(VM, HOST, etc) have different capacities, so the same value cannot be used for the
ensure_diskfreeoption.To avoid this situation, we have added the option
fake_diskfreeto deceive free disk space.The value of this option is stored as free disk space when s3fs is started, and after that, this value(difference from the actual free disk space) will be used.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.