- 10 Aug, 2012 18 commits
-
-
Cyrill Gorcunov authored
To test futex robust list C/R. 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
This patch introduces ThreadCoreEntry protobuf structure which is to carry thread-specific arch-independent information. Now put there the c/r futex robust lists. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The call will then have to handle this end (put into a bridge). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The peer device is named veth_host and is supposed to be pushed outside the netns being restored for proper host-side configuration. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Veth will fill the linkinfo part for peer. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The name will be valid for new veth, mtu has to be restored for all devices. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We need to add payload to NEWLINK request and will have to work with it outside the restore_one_link fn. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This one is required to say, that we do want a new device is it doesn't exists. This is so for all the devices except lo. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
These devices can be distinguished by type ETHER and kind "veth". Some problems with peer detection exists (described in comment), but we cannot handle them at the moment. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Add more helpers that manage nla blobs (taken from iproute2 tool). Need for veth support. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This field was lost while switching to protobuf -- the vma images were used by parasite as plain array and it was easier to reseve this space in the image. Now it's too late to change this, so make it be -1 always. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Bug introduced by 27d62237. Sorry about it :( Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need them for futex robust list c/r. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We use repeated u32 field for IPv* address. For ipv4 there's 1 element in it, for ipv6 -- 4. Validate these sizes in image and check that sockaddr_in* elements sizes match. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
Let's carry only on uint_32 for IPv4 address. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Use # for both and don't use fixed field width for 32bit one (as they are most likely just some values, while the 64bit is some address which is better to be printed with full width). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 09 Aug, 2012 18 commits
-
-
Pavel Emelyanov authored
Wrong pointer was checked against NULL and default value. This resulted in lost tc part of the core message in show output. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
The devpts fs should be mounted and its content is restored, when crtools restores terminals. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Reported-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
When dumping a tmpfs mount we need to take its contents with us. So, use tar for it and put it into the image dir. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
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 2 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>
-