Added a flag to prevent stats cache expiration checks
This commit is contained in:
committed by
Andrew Gaul
parent
52b263b99c
commit
b2e318c5c7
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user