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

@ -24,6 +24,7 @@
#include "fs_movefile_and_open.hpp"
#include "fs_pwrite.hpp"
#include "fs_pwriten.hpp"
#include "ioprio.hpp"
#include "fuse.h"
@ -187,6 +188,8 @@ FUSE::write(const fuse_file_info_t *ffi_,
size_t count_,
off_t offset_)
{
ioprio::SetFrom iop(fuse_get_context()->pid);
return ::_write(ffi_,buf_,count_,offset_);
}