提交 fe2ce878 编写于 作者: L lifeng68

update: add support update blkio_weight

Signed-off-by: Nlifeng68 <lifeng68@huawei.com>
上级 7d0a82f5
......@@ -111,8 +111,8 @@ int cmd_update_main(int argc, const char **argv)
int i = 0;
struct isula_libutils_log_config lconf = { 0 };
command_t cmd;
struct command_option options[] = { LOG_OPTIONS(lconf) UPDATE_OPTIONS(g_cmd_update_args),
COMMON_OPTIONS(g_cmd_update_args)
struct command_option options[] = { LOG_OPTIONS(lconf) UPDATE_OPTIONS(g_cmd_update_args)
COMMON_OPTIONS(g_cmd_update_args)
};
isula_libutils_default_log_config(argv[0], &lconf);
......
......@@ -79,10 +79,20 @@ extern "C" {
&(cmdargs).cr.memory_swap, \
"Swap limit equal to memory plus swap: '-1' to enable unlimited swap", \
command_convert_memswapbytes }, \
{ \
CMD_OPT_TYPE_STRING, false, "restart", 0, &(cmdargs).restart, \
"Restart policy to apply when a container exits", NULL \
}
{ CMD_OPT_TYPE_STRING, \
false, \
"restart", \
0, \
&(cmdargs).restart, \
"Restart policy to apply when a container exits", \
NULL }, \
{ CMD_OPT_TYPE_CALLBACK, \
false, \
"blkio-weight", \
0, \
&(cmdargs).cr.blkio_weight, \
"Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)", \
command_convert_u16 },
extern const char g_cmd_update_desc[];
extern const char g_cmd_update_usage[];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册