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:
Antonio SJ Musumeci 2026-04-28 09:07:27 -05:00 • committed by trapexit
parent 7616d8b1ac
commit 9308a3729c
16 changed files with 140 additions and 36 deletions

View file

@ -114,8 +114,9 @@ _ioctl_file(const fuse_req_ctx_t *ctx_,
void *data_,
u32 *out_bufsz_)
{
FileInfo *fi = FileInfo::from_fh(ffi_->fh);
FileInfo *fi;
fi = state.get_fi(ctx_,ffi_->fh);
if(not fi)
return -EBADF;