Cyrill Gorcunov
65e9402d47
restore: Fix pipes restore if both pipe ends are used by former process
...
In case if the former process used both pipe ends we fall
into endless loop since the 'users' never reaches 1. So
to resolve this during the pipe collectioning we check if
both pipe ends were used by a former process and if so --
we connect first pipe end immediately in create_pipe and
connect the rest via attach_pipe.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 09:00:45 +04:00
Cyrill Gorcunov
61a6eb781c
restore: Make sure shmems are zeroified
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 01:13:16 +04:00
Andrew Vagin
d5d8d920dd
make: Fix deps for non-parasite code
...
Without it parallel execution fails.
Reported-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-09-29 17:02:15 +04:00
Cyrill Gorcunov
34c2f562c3
Add crtools into gitignore
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 16:04:04 +04:00
Cyrill Gorcunov
98be6495c7
make: Move tests into test/ directory
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 16:03:36 +04:00
Cyrill Gorcunov
a2dd6deb3a
git: Ignore swp files as well
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 13:16:30 +04:00
Cyrill Gorcunov
7f71fc32c6
Update .gitignore
...
Autogenerated files should be ignored by git.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 13:14:44 +04:00
Cyrill Gorcunov
843432fefd
restore: Use pr_error instead of stderr output
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 01:24:23 +04:00
Cyrill Gorcunov
114d89cc89
restore: Use pipeid in pipe_info to match pipe_entry
...
To have similar naming scheme.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 00:50:09 +04:00
Cyrill Gorcunov
c3a05afafd
test: Bring pipes back in testee-static
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 23:27:18 +04:00
Cyrill Gorcunov
58a4a82528
restore: Fix typo in try_fixup_file_map
...
vma_entry is already a pointer -- no need
for second ampersand.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 23:23:43 +04:00
Cyrill Gorcunov
11cf71c542
restore: Tune up fixup_pages_data
...
Use pr_panic if ending-zero page is missed
(also a few style tuneups).
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 21:20:53 +04:00
Cyrill Gorcunov
1293fb0f8e
restore: Make should_restore_page being bool
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 18:44:46 +04:00
Cyrill Gorcunov
4727c73984
restore: Simplify try_fixup_file_map
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 16:49:59 +04:00
Cyrill Gorcunov
6978194642
restore: Use shmid instead of id, as declared in image file
...
To not bring in varying member name with same meaning.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 15:55:12 +04:00
Cyrill Gorcunov
8800be50f8
restore: Use find_ prefix searching routines
...
To make a consistent scheme.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 14:45:30 +04:00
Cyrill Gorcunov
3971dbb78d
restore: File mappings should use process pid as well
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 13:19:30 +04:00
Cyrill Gorcunov
2de8de5d4e
restore: Rename try_to_add into collect_ routines
...
As they are. Also add some more debug printing on
pipe users in debug purpose.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 01:09:34 +04:00
Cyrill Gorcunov
af1dfdda5e
restore: Add comment about closing pipes descriptors
...
Also a few style nitpicks.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 20:23:26 +04:00
Cyrill Gorcunov
eb457b71fb
test: Uncomment pipes
...
Otherwise there is no way to pass pipes test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 18:56:14 +04:00
Cyrill Gorcunov
5498ed173b
restore: Use close_safe for pipes
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 18:50:02 +04:00
Cyrill Gorcunov
9212f2e847
restore: Drop unneded perror's
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 18:48:57 +04:00
Cyrill Gorcunov
e672d1a87f
restore: Make reopen_fd_as to print error
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 18:39:56 +04:00
Cyrill Gorcunov
401464d22a
Add close_safe helper
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 18:28:09 +04:00
Cyrill Gorcunov
aff6918b17
kernel: Fixups on segment loading in Elf handling
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 15:11:52 +04:00
Andrew Vagin
b1739c08f5
restore: fix counter in pipe_entry
...
The counter should be incremented all times, when new user is found.
Signed-off-by: Andrey Vagin <avagin@openvz.org>
2011-09-27 12:55:05 +04:00
Cyrill Gorcunov
06ae1f8697
restore: Drop a few style rudiments from code
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-27 01:14:38 +04:00
Cyrill Gorcunov
961fcdc697
restore: Cleanup fixup_vma_fds a bit
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-26 18:14:39 +04:00
Cyrill Gorcunov
30f002d21c
Add comments on VMA area status flags
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-26 01:26:11 +04:00
Cyrill Gorcunov
a49ac47f90
test: Add anonymous shared memory into testee
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-24 21:11:23 +04:00
Cyrill Gorcunov
af4f7d66d4
kernel: Don't foget to load %gs index
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-23 16:18:43 +04:00
Cyrill Gorcunov
ab244844f6
Print pgoff in VMA dump as well
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-23 16:17:24 +04:00
Cyrill Gorcunov
55a7852866
kernel: Add missing ET_CKPT into patch title
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-23 12:46:43 +04:00
Cyrill Gorcunov
afe2b3fc3d
kernel: Update Elf patch changelong
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-23 12:43:50 +04:00
Cyrill Gorcunov
523de23624
Initial commit
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
init
2011-09-23 12:00:45 +04:00