mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2016] [MERGED] Added the function to update mtime/ctime of the parent directory #2306
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#2306
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/2016
Author: @ggtakec
Created: 7/30/2022
Status: ✅ Merged
Merged: 2/12/2023
Merged by: @ggtakec
Base:
master← Head:update_parentdir_stat📝 Commits (1)
1508d66Added the function to update mtime/ctime of the parent directory📊 Changes
6 files changed (+469 additions, -9 deletions)
View changed files
📝
doc/man/s3fs.1.in(+4 -0)📝
src/fdcache_entity.h(+1 -0)📝
src/s3fs.cpp(+186 -6)📝
src/s3fs_help.cpp(+6 -0)📝
test/integration-test-main.sh(+271 -2)📝
test/small-integration-test.sh(+1 -1)📄 Description
Relevant Issue (if applicable)
#1961 #1962 #1964 #2024
Details
This fix, the
mtime/ctimeof the parent directory is updated when thei-nodeof the parent directory is updated(create/delete files and directories, etc.).The operation to update
mtime/ctimein the parent directory is shown below:touch,cp,ln -s,mkdir, etc)mv, etc)touch,chmod,chown, chgrp`, etc)I am adding a test(
test_update_parent_directory_time) for the above pattern.This fix will perform updating stats of the parent directory for each operation.
And this updating stats is enabled by default.
However, some users may not need this update stats process, and I have added the option
disable_update_parent_dir_statto suppress it.This PR will resolve the issues in #1961 and #1962.
After #1964 will be merged, this branch will be rebased and release Draft.
This PR contains the same code as #1964.
(This is necessary and dependent it for conducting the test.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.