summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-21 00:28:30 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-21 20:07:45 +0200
commit94959f0fa0c19ae1db0e63d9a5dfc94c660825ba (patch)
tree22733bd2908d5001892f454cb786c279cd538e1f /src/util.h
parent9e37286844f67ca7c59e923dd27ad193dfdda7eb (diff)
exec: allow passing arbitrary path names to blkio cgroup attributes
If a device node is specified, then adjust the bandwidth/weight of it, otherwise find the backing block device of the file system the path refers to and adjust its bandwidth/weight.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 54873e648e..e23f309d3d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -465,6 +465,8 @@ bool is_main_thread(void);
bool in_charset(const char *s, const char* charset);
+int block_get_whole_disk(dev_t d, dev_t *ret);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)