2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00
Andrey Vagin a19643e643 mount: cut a common part of sources for bind-mounts
The source of the root mount may be not equal to "/" and we need to take
this fact into account, when we bind-mount it to somewhere.

For example:

11877 ?        Ss     0:00 ./bind-mount --pidfile=bind-mount.pid --outfile=bind-mount.out --dirname=bind-mount.test
11880 ?        Ss     0:00  \_ ./bind-mount --pidfile=bind-mount.pid --outfile=bind-mount.out --dirname=bind-mount.test
[root@avagin-fc19-cr crtools]# cat /proc/11880/mountinfo
68 42 8:3 /root/git/crtools/test / rw,relatime - ext4 /dev/sda3 rw,data=ordered
43 68 0:33 / /proc rw,relatime - proc proc rw
44 68 0:34 / /dev/pts rw,relatime - devpts pts rw,mode=666,ptmxmode=666
45 68 8:3 /root/git/crtools/test/zdtm/live/static/bind-mount.test/test /zdtm/live/static/bind-mount.test/bind rw,relatime - ext4 /dev/sda3 rw,data=ordered

The 45 mount is bind-mount of the 68 mount.
mi(45)->root = /root/git/crtools/test/zdtm/live/static/bind-mount.test/test
mi(68)->root = /root/git/crtools/test

so the comman part is "/root/git/crtools/test" and the command is
mount --bind /zdtm/live/static/bind-mount.test/test /zdtm/live/static/bind-mount.test/bind

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-04-11 16:04:08 +04:00
2014-04-09 13:24:40 +04:00
2013-08-29 14:48:17 +04:00
2012-03-25 23:31:20 +04:00
2013-04-01 12:29:06 +04:00
2014-01-14 09:33:19 +04:00
2014-03-25 01:20:02 +04:00
2012-07-30 13:52:37 +04:00
2013-04-30 20:17:55 +04:00
2014-03-25 01:20:02 +04:00
2014-02-07 13:55:27 +04:00
2014-02-05 16:18:16 +04:00
2014-03-14 15:43:49 +04:00
2014-02-04 20:54:25 +04:00
2014-04-11 15:15:18 +04:00
2014-03-25 01:20:02 +04:00
2013-11-06 18:18:12 +04:00
2014-03-14 18:57:16 +04:00
2013-12-12 10:00:45 +04:00
2013-12-12 09:58:50 +04:00
2013-12-12 09:58:50 +04:00
2013-12-12 10:03:07 +04:00
2013-12-12 10:03:07 +04:00
2013-11-06 18:18:12 +04:00
2014-02-28 13:08:00 +04:00
2014-02-04 14:03:10 +04:00
2013-11-29 15:36:07 +04:00
2013-04-05 08:23:17 +04:00
2013-11-06 18:18:12 +04:00

criu
====

An utility to checkpoint/restore tasks. Using this tool, you can
freeze a running application (or part of it) and checkpoint it to
a hard drive as a collection of files. You can then use the files
to restore and run the application from the point it was frozen
at. The distinctive feature of the CRIU project is that it is
mainly implemented in user space.

The project home is at http://criu.org

Pages worth starting with are
* Kernel configuration, compilation, etc: http://criu.org/Installation
* A simple example of usage: http://criu.org/Simple_loop
* More sophisticated example with graphical app: http://criu.org/VNC
Description
No description provided
Readme 81 MiB
Languages
C 86%
Python 6.1%
Java 2.6%
Shell 2.6%
Makefile 2%
Other 0.7%