Added a flag to prevent stats cache expiration checks

This commit is contained in:
Takeshi Nakatani
2025-08-17 06:19:03 +00:00
committed by Andrew Gaul
parent 52b263b99c
commit b2e318c5c7
3 changed files with 90 additions and 3 deletions

View File

@ -1231,6 +1231,9 @@ static int s3fs_mkdir(const char* _path, mode_t mode)
return -EIO;
}
// keep stat cache without checking expiration
PreventStatCacheExpire nocacheexpire;
// check parent directory attribute.
if(0 != (result = check_parent_object_access(path, W_OK | X_OK))){
return result;
@ -1322,6 +1325,9 @@ static int s3fs_rmdir(const char* _path)
FUSE_CTX_INFO("[path=%s]", path);
// keep stat cache without checking expiration
PreventStatCacheExpire nocacheexpire;
if(0 != (result = check_parent_object_access(path, W_OK | X_OK))){
return result;
}