Implemented linux ionice funtionality

This commit is contained in:
eleksir
2024-04-29 20:42:23 +03:00
parent d962e4fd46
commit 863ca34383
10 changed files with 244 additions and 16 deletions

View File

@@ -29,6 +29,8 @@ type Config struct {
Kill Kill `yaml:"kill,omitempty"`
Prio Prio `yaml:"prio,omitempty"`
IOPrio IOPrio `yaml:"ioprio,omitempty"`
}
type Prio []struct {
@@ -41,4 +43,10 @@ type Kill []struct {
Name []string `yaml:"name,omitempty"`
}
type IOPrio []struct {
Class uint32 `yaml:"class,omitempty"`
Prio uint32 `yaml:"prio,omitempty"`
Name []string `yaml:"name,omitempty"`
}
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */