mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 19:37:00 -05:00
Add ability to proxy ioprio of client apps (#1534)
This commit is contained in:
parent
2f3e807e9d
commit
569a151da2
13 changed files with 217 additions and 1 deletions
20
src/ioprio.hpp
Normal file
20
src/ioprio.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
namespace ioprio
|
||||
{
|
||||
void enable(const bool);
|
||||
bool enabled();
|
||||
|
||||
int get(const int which, const int who);
|
||||
int set(const int which, const int who, const int ioprio);
|
||||
|
||||
struct SetFrom
|
||||
{
|
||||
static thread_local int thread_prio;
|
||||
|
||||
SetFrom(const pid_t pid);
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue