• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

checkpoint-restore / criu / 2181 / 14
6%
master: 33%

Build:
Build:
LAST BUILD BRANCH: criu-dev
DEFAULT BRANCH: master
Ran 02 Aug 2018 07:13AM UTC
Files 217
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Aug 2018 07:13AM UTC coverage: 64.859% (+0.1%) from 64.743%
TR_ARCH=local GCOV=1

push

travis-ci

Andrei Vagin
cr-service: add support for configuration files in RPC mode

With this commit it is possible to specify a configuration file via
RPC. In python this would look like this:

 req.opts.config_file = 'path/to/config_file'

With this commit CRIU's configuration file handling works like this:

 * apply_config(global_conf)
 * apply_config(user_conf)
 * apply_config(environment variable)
 * apply_config(config file via CLI)
 * apply_rpc_options() or apply_cli_options()
 * apply_config(rpc_conf) (only for RPC)

This is at least (probably) the third iteration of the RPC configuration
file code and it still is complicated.

Most CRIU options are correctly used by just writing the new values to
the corresponding fields of the opts structure. For the RPC case there
are, however, a few options (output, work_dir, imgs_dir) which need
special handling.

So the RPC configuration file is parsed twice. First time to get output,
work_dir and imgs_dir. Once those are read and correctly used, the RPC
code overwrites all options again by values set by the RPC interface. At
the end the RPC configuration file is read a second time and finally
overwrites the values set via RPC.

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>

21231 of 32734 relevant lines covered (64.86%)

719385.75 hits per line

Source Files on job 2181.14 (TR_ARCH=local GCOV=1)
  • Tree
  • List 0
  • Changed 139
  • Source Changed 7
  • Coverage Changed 139
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2003
  • Travis Job 2181.14
  • d1439a67 on github
  • Prev Job for TR_ARCH=local GCOV=1 on criu-dev (#2179.14)
  • Next Job for TR_ARCH=local GCOV=1 on criu-dev (#2182.14)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc