- 09 Aug, 2012 14 commits
-
-
Andrey Vagin authored
Binfmt is global fs. We could check for its inhabitants intersect on source and destination, but for the 1st time it's enough just to check this one being empty. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The routines are supposed to provide a DIR * for a givem mountpoint. Currently it aborts when a mountpoint is overmounted, but this should be fixed eventually. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
These are boolean in reality. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Packet socket need SOL_PACKET one. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We need to dump content of some fs like binfmt_misc, tmpfs, ... To facilitate this the existing list of filesystems is turned into an array of structures with dump and restore callbacks. Each FS may declare them they need. v2: rework encode/decode_fstype not to do it twice. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It's global, so it doesn't require any actions, they should be only mounted. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
If an image isn't specified, crtool shows content of all images. Now crtools aborts in this case due to BUG_ON(1) in show methods for raw images. I sugget to skip such images. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Create and bind. Nothing more. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Support only basic packet socket functionality -- create and bind. This should be enough to start testing dhclient inside container. Other stuff (filter, mmaps, fanouts, etc.) will come later. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
On restore we typically read an image and put the entries into some hash/list/whatever to work on them later. It's handy to have a generic routine for doing so. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 08 Aug, 2012 2 commits
-
-
Kinsbursky Stanislav authored
Now pie targets depends on protobuf targets. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Reported-by:
Andrew Vagin <avagin@parallels.com> Tested-by:
Andrew Vagin <avagin@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Looks-good-to: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The crtools produces not only dump in its internal format (i.e. -- pb), but also may call other tools to create files with some state (e.g. ip tool dumps route and ifaddr info, tmpfs will be tar-ed, iptables utility will produce the iptables-save file, etc.). The show functionality cannot read these images, but we can guess what can be in the file provided by its magic. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 07 Aug, 2012 7 commits
-
-
Andrey Vagin authored
"init" in LXC opens /dev/null and then mounts devtmpfs in /dev, so crtools can not resolve the path to the origin /dev/null. crtools with the option --evasive-devices will check the origin device and a new device are the same and if it's true, crtools will dump a new path. v2: add a description for the option Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
This aptch replaces BUG_ON's by return of error code. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The pb_show things are no longer macros. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The pb_read thing is no longer a macros. This will allow to factor out objects collecting on restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The pb_write thing is no longer a macros. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The protobuf-c generate plain routines for entries manipulations, but we want to have some "generic" way of working with messages. Collect them all in an array of descriptors (similar to image files descriptions) and do full typechecking while this. Such thing will allow to simplfy code later. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 06 Aug, 2012 9 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
In addition it fixes error handling. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
[xemul: Added explicit braces into ifs] Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
When processes are restored in PIDNS, the controll process (crtools) don't know a real pid of processes, but it knows a pid of init. crtools can kill init and all other processes will be killed too. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
When a child exited, SIGCHLD is sent to parent, if SIGCHLD has handler without SA_RESTART, the current syscall will be interrupted. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- Use sizeof instead of PATH_MAX constant - Place EOS exactly after read data end Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Aug, 2012 8 commits
-
-
Pavel Emelyanov authored
Revert and tune 9eda83b7. Andrey reminded me that we have global instance of cr_options. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
On this stage crtools unlink old socket files, create ghost files and etc, so we should be in a correct namespace. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The option is -r|--pivot-root and an argument is a path to new root. A root task will make pivot_root. LXC CT does that, so we need that for restoring. v2: s/pivot-root/root/ Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The pstree_item for helpers is allocated without rst_info. Before this patch prepare_fd_pid was executed for such items and touched rst_info. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The kernel patch is in 3.5 branch, so we can make this test run automatically. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's not in zdtm.sh yet, since kernel patch is not yet committed. When kernel is updated, the zdtm.sh will be too. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Only the fact of the fd presence, its flags and fown and the sigmask. The sigpending state is tightly coupled with the task's sigpending state which is not yet supported. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-