[systemd-devel] [PATCH] blcokio bandwidth: add missing set of CGroupBlockIODeviceBandwidth's read
Gao feng
gaofeng at cn.fujitsu.com
Tue Aug 27 21:10:16 PDT 2013
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index e5fc4a3..4714687 100644
--- 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);
--
1.8.3.1
More information about the systemd-devel
mailing list