[systemd-devel] [PATCH 3/3] systemcl: add support for setting BlockIORead/WriteBandwidth for unit

Lennart Poettering lennart at poettering.net
Tue Sep 10 08:31:26 PDT 2013


On Fri, 30.08.13 10:56, Gao feng (gaofeng at cn.fujitsu.com) wrote:

> This patch allows user to set up BlockIOReadBandwidth and BlockIOWriteBandwidth
> for unit through systemctl. Such as
> 
> systemctl set-property sshd.service BlockIOReadBandwidth="/dev/sda 100000"
> systemctl set-property sshd.service BlockIOWriteBandwidth="/dev/sda 200000"

Applied, with one change though. I replaced safe_atou64() by
parse_bytes() so that people can specifiy values like "5M" or so instead
of 5242880, the same way as we allow this in unit files.

Thanks!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list