chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af726c
)
blcokio bandwidth: add missing set of CGroupBlockIODeviceBandwidth's read
author
Gao feng
<gaofeng@cn.fujitsu.com>
Wed, 28 Aug 2013 04:10:16 +0000
(12:10 +0800)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 28 Aug 2013 12:04:56 +0000
(08:04 -0400)
BlockIOReadBandwidth and BlockIOWriteBandwidth both use
config_parse_blockio_bandwidth to set up CGroupBlockIODeviceBandwidth,
We should set the read value based on the left values
in config files.
src/core/load-fragment.c
patch
|
blob
|
history
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index e5fc4a3bd9dca5f001a5b6405b4fa9c68dfae7d0..4714687955f6da42e4210775c46129abbcd71fd9 100644
(file)
--- a/
src/core/load-fragment.c
+++ b/
src/core/load-fragment.c
@@
-2253,6
+2253,7
@@
int config_parse_blockio_bandwidth(
b->path = path;
path = NULL;
b->bandwidth = (uint64_t) bytes;
+ b->read = streq("BlockIOReadBandwidth", lvalue);
LIST_PREPEND(CGroupBlockIODeviceBandwidth, device_bandwidths, c->blockio_device_bandwidths, b);