diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-11 16:48:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-11 18:31:49 +0200 |
commit | d53d94743c5e5e3a4a668b0c707826a90a08949a (patch) | |
tree | c9f88941f6a5f072263ee7707500d577bf077300 /src/import/pull-common.c | |
parent | afc966e288b5013de55c56b18ddc9a5723b865d5 (diff) |
core: refactor cpu shares/blockio weight cgroup logic
Let's stop using the "unsigned long" type for weights/shares, and let's
just use uint64_t for this, as that's what we expose on the bus.
Unify parsers, and always validate the range for these fields.
Correct the default blockio weight to 500, since that's what the kernel
actually uses.
When parsing the weight/shares settings from unit files accept the empty
string as a way to reset the weight/shares value. When getting it via
the bus, uniformly map (uint64_t) -1 to unset.
Open up StartupCPUShares= and StartupBlockIOWeight= to transient units.
Diffstat (limited to 'src/import/pull-common.c')
0 files changed, 0 insertions, 0 deletions