mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 20:06:52 -05:00
When file unlinked check open_files map
Inadvertantly removed. Didn't realize that the kernel would not always send file handle when unlinked.
This commit is contained in:
parent
7616d8b1ac
commit
9308a3729c
16 changed files with 140 additions and 36 deletions
|
|
@ -115,6 +115,24 @@ public:
|
|||
FileInfo *fi;
|
||||
};
|
||||
|
||||
public:
|
||||
FileInfo*
|
||||
get_fi(const fuse_req_ctx_t *ctx_,
|
||||
cu64 fh_) const
|
||||
{
|
||||
FileInfo *fi;
|
||||
|
||||
fi = FileInfo::from_fh(fh_);
|
||||
if(not fi)
|
||||
open_files.cvisit(ctx_->nodeid,
|
||||
[&](auto &v_)
|
||||
{
|
||||
fi = v_.second.fi;
|
||||
});
|
||||
|
||||
return fi;
|
||||
}
|
||||
|
||||
public:
|
||||
struct GetSet
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue