mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
add RPC options for for --enable-fs and --skip_mount
Subject. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
be4acd9d6e
commit
92480346e1
2 changed files with 13 additions and 0 deletions
10
cr-service.c
10
cr-service.c
|
|
@ -372,6 +372,16 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
|
|||
goto err;
|
||||
}
|
||||
|
||||
for (i = 0; i < req->n_enable_fs; i++) {
|
||||
if (!add_fsname_auto(req->enable_fs[i]))
|
||||
goto err;
|
||||
}
|
||||
|
||||
for (i = 0; i < req->n_skip_mnt; i++) {
|
||||
if (!add_skip_mount(req->skip_mnt[i]))
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (req->has_cpu_cap)
|
||||
opts.cpu_cap = req->cpu_cap;
|
||||
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@ message criu_opts {
|
|||
optional bool auto_ext_mnt = 28;
|
||||
optional bool ext_sharing = 29;
|
||||
optional bool ext_masters = 30;
|
||||
|
||||
repeated string skip_mnt = 31;
|
||||
repeated string enable_fs = 32;
|
||||
}
|
||||
|
||||
message criu_dump_resp {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue