- 16 Apr, 2012 7 commits
-
-
Pavel Emelyanov authored
By now equip all the short options with respective long one. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This avoids two duplicate lines. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
The message "Got fd for %d" is non-informative, change it to "Restoring fd %d" since that is what function does. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Our loggin engine prints file:line only at invoke point, so it's unable to see where exactly reopen_fd_as_safe is failed. With this patch the output is more human readable | Error (util.c:96): fd 7 already in use (called at files.c:359) Ideally we need full backtrace here, but it's different task. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kinsbursky Stanislav authored
Command below was executed several times: sed 's/\(pr_.*[^%,x,X]\)\(\%[0-9,l,L]*x\)/\10x\2/g' -i *.c Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Make sense in multiline cases only. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 13 Apr, 2012 8 commits
-
-
Cyrill Gorcunov authored
When set up mm::code/data addresses the kernel expects the correspond VMAs to have predefined protection, but task might have dropped or mprotected those VMAs at moment of checkpoint. So just setup fake VMAs, call prctl and munmap them immediately. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Util we have kernel support. [ xemul: MySQL uses runaway pgid and sid and we cannot restore it gracefully with exiting API :( Byt MySQL seem not to care about pgid and sid change after restore, so ignore this for a while ] Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
To line the constants up. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Some ino/peers are printed with %d, some with %x, get rid of it and print all in %x. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This includes existing test and a new one, checking that unlinked hardlinks are handled properly. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Completely unlinked file is the one with n_link count being zero. Such files only allow to read their contents and carry with us. In order to dump this thing I introduce the "path remap" technology. For reg file a remapping entry is dumped which describes, that at restore stage before opening a regfile->path this path should be linked to some other name and then (after open) unlinked. For completely unlinked files the remap path would be a path to a "ghost" file, i.e. a file which is created only at the time of restore and which is removed completely at the end of it. Partially unlinked files (i.e. those having n_link != 0, but a path by which we see them in someone's fd is not accessible) should be handled in another way. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Will be required to dump completely unlinked files. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This is trivial. Just copy-n-paste pieces from the udp dumping and restoring code. The zdtm test is also a compy of the _udp test with respecitve changes. Reuired for httpd, this one uses udplite sockets. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 12 Apr, 2012 17 commits
-
-
Cyrill Gorcunov authored
In case if unix socket was not found don't call for container_of. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Most likely they left from Andrey's shmem rework. 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>
-
Cyrill Gorcunov authored
Otherwise output looks like Dumping core (pid: 16953) ---------------------------------------- Dumping GP/FPU registers ... OK Obtainting personality ... OK Obtainting task auvx ... Dumping path for 1 fd via self 19 [/home/crtools/test/legacy/test-inotify] Dumping header ... ---------------------------------------- Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Generate a pseudorandom tree of files, run tar cjf on it to create referenced tarball, then run the same again on the background, wait for a while, then checkpoint and restore it and compare that two tarballs do not differ. 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>
-
Pavel Emelyanov authored
The intention is to put here tests, that check how real apps work. Initially I test that make -j4 works. This test is very basic (uses sleep to wait for make to fork everybody) and a syntetic .c file (quite big though). Extend and use. 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
Tests for pipes fowners checkpoint/restore. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
The base idea is trivial, once file descriptor created the owner is read and set up. 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
Just show implemented and stubs added to image (regular file and pipes). 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>
-
- 11 Apr, 2012 8 commits
-
-
Pavel Emelyanov authored
If I'm not mistaken this covers all the if-s in the restore_pgid and restore_sid code. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This is preriquisity for terminals handling and just a good practice to save and restore everything we can :) Not all combinations are supported. All the problems we still have come from the inability to attach to group/session with ID no tasks own as its PID. This can be workarounded by fork()-ing this pid temporarily, but we'd rather think in the direction of modifying the kernel to give us direct syscall for this (oh my...) Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
I store them on _entry since sids can only be inherited or set to current's pid. Thus the best we can do it restore sids at fork time, thus save them in the image we use to fork. Maybe when we submit patches that will give us ability to set arbitrary pgid and sid we'll change this, but this is in the future. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
They are just two next in this file, so extend. This is required for pgid/sid early read, see next patches for details. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This is trivial change, but is required to check for pgid/sid are in 'restorable' state, see for respective patch/code for details. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
New stage CR_STATE_FORKING. This is required to restore pgids properly -- we need to make sure a task with pid whose pgid we are about to enter is alive. And this task is not necesserily our parent, thus wait for everyone to appear. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Otherwise multiple writers can screw each-other's messages. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Wile the task is infected we cannot just detach from it and go away. The victim will die after this. So, call the parasite_cure_seized on any error handing between infect and cure. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-