mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse.cpp
This commit is contained in:
parent
fbf5bfac06
commit
eedbd9d4d3
1 changed files with 9 additions and 4 deletions
|
|
@ -1501,10 +1501,15 @@ fuse_lib_getattr(fuse_req_t *req_,
|
|||
|
||||
if(!err)
|
||||
{
|
||||
mutex_lock(f.lock);
|
||||
node = get_node(hdr_->nodeid);
|
||||
update_stat(node,&buf);
|
||||
mutex_unlock(f.lock);
|
||||
{
|
||||
mutex_lockguard(f.lock);
|
||||
node = get_node(hdr_->nodeid);
|
||||
if(node == NULL)
|
||||
{
|
||||
|
||||
}
|
||||
update_stat(node,&buf);
|
||||
}
|
||||
set_stat(hdr_->nodeid,&buf);
|
||||
fuse_reply_attr(req_,&buf,timeouts.attr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue