From 881025cc9e099a2824085133c6285d6793c09c92 Mon Sep 17 00:00:00 2001 From: Martynov Maxim Date: Sat, 10 Jul 2021 10:23:20 +0300 Subject: [PATCH] Add initiator pid, uid and gid to a debug log (#1716) --- src/s3fs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index e0f949c..5f45aa8 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -535,6 +535,8 @@ static int check_object_access(const char* path, int mask, struct stat* pstbuf) if(NULL == (pcxt = fuse_get_context())){ 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 there is not the target file(object), result is -ENOENT. return result;