mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-23 13:58:24 +00:00
Add initiator pid, uid and gid to a debug log (#1716)
This commit is contained in:
parent
4cc210c5ab
commit
881025cc9e
@ -535,6 +535,8 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf)
|
|||||||
if(NULL == (pcxt = fuse_get_context())){
|
if(NULL == (pcxt = fuse_get_context())){
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
S3FS_PRN_DBG("[pid=%u,uid=%u,gid=%u]", (unsigned int)(pcxt->pid), (unsigned int)(pcxt->uid), (unsigned int)(pcxt->gid));
|
||||||
|
|
||||||
if(0 != (result = get_object_attribute(path, pst))){
|
if(0 != (result = get_object_attribute(path, pst))){
|
||||||
// If there is not the target file(object), result is -ENOENT.
|
// If there is not the target file(object), result is -ENOENT.
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user