Rework how fuse request context is handled (#1543)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-10-13 00:21:36 -04:00 • committed by GitHub
parent d18c273293
commit 0371f03def
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
117 changed files with 1894 additions and 2438 deletions

View file

@ -183,18 +183,20 @@ _write(const fuse_file_info_t *ffi_,
}
int
FUSE::write(const fuse_file_info_t *ffi_,
FUSE::write(const fuse_req_ctx_t *ctx_,
const fuse_file_info_t *ffi_,
const char *buf_,
size_t count_,
off_t offset_)
{
ioprio::SetFrom iop(fuse_get_context()->pid);
ioprio::SetFrom iop(ctx_->pid);
return ::_write(ffi_,buf_,count_,offset_);
}
int
FUSE::write_null(const fuse_file_info_t *ffi_,
FUSE::write_null(const fuse_req_ctx_t *ctx_,
const fuse_file_info_t *ffi_,
const char *buf_,
size_t count_,
off_t offset_)