Add ability to proxy ioprio of client apps (#1534)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-09-26 12:36:56 -04:00 • committed by GitHub
parent 2f3e807e9d
commit 569a151da2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 217 additions and 1 deletions

View file

@ -19,6 +19,7 @@
#include "errno.hpp"
#include "fileinfo.hpp"
#include "fs_pread.hpp"
#include "ioprio.hpp"
#include "fuse.h"
@ -60,6 +61,7 @@ FUSE::read(const fuse_file_info_t *ffi_,
size_t size_,
off_t offset_)
{
ioprio::SetFrom iop(fuse_get_context()->pid);
FileInfo *fi = FileInfo::from_fh(ffi_->fh);
if(fi->direct_io)