- 18 Apr, 2013 2 commits
-
-
Pavel Emelyanov authored
It's not complete and is about to change significantly. Better not show it oficially. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 16 Apr, 2013 15 commits
-
-
Andrey Vagin authored
CID 996195 (#1 of 1): Resource leak (RESOURCE_LEAK) 10. leaked_handle: Handle variable ask going out of scope leaks the handle. CID 996196 (#3 of 3): Resource leak (RESOURCE_LEAK) 10. leaked_handle: Handle variable sk going out of scope leaks the handle. 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>
-
Libo Chen authored
Update to commit 78b8abe9 I find a compile err: kerndat.c: In function 'kerndat_get_dirty_track': kerndat.c:78:6: error: ignoring return value of 'read', declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make[2]: *** [kerndat.o] Error 1 make[1]: *** [built-in.o] Error 2 make[1]: Leaving directory `/home/clb/crtools' make: *** [all] Error 2 Signed-off-by:
Libo Chen <libo.chen@huawei.com> 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
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Make it be explicitly splitted into 2 sub-paths. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Page server cannot provide one big pipe with pages. Thus, before this patch, it wrote pages into image in small pieces. Now the page-xfer API accepts pagemaps and pages separately, so we can just use thie API. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Split it into two parts -- writing pagemap and writing pages. This is required for page-server part, sinc it cannot provide one big pipe with all the pages at once. Thus it needs to feed pages in portions. 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
These three are quite complex things, so write general comments about what they are doing. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Apr, 2013 6 commits
-
-
Pavel Emelyanov authored
Two args (optional) -- number of snaps (3 defail) and pause between them (4 defail). Uses memory toucher from zdtm/. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
One of such things we use right now is the device for anon shmem mappings backing. In the furure this can be extended to check for various kernel features. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
This is less useful than fixing typos in output messages, but anyway. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
Someone has to do it, right?.. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 12 Apr, 2013 12 commits
-
-
Cyrill Gorcunov authored
On error paths we don't explicitly close procfile. CID 996191 (#5 of 6): Resource leak (RESOURCE_LEAK) 22. leaked_storage: Variable "f" going out of scope leaks the storage it points to. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Don't call close() with degative fd. For consistency simply use close_safe here. All fds touched are initialized either to valid fd or to value < 0 which pretty good handled by close_safe helper. CID 996212 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS) 10. negative_returns: "fd" is passed to a parameter that cannot be negative. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Don't pass negative descriptor to install_service_fd CID 996213 (#1 of 1): Improper use of negative value (NEGATIVE_RETURNS) 7. negative_returns: "new_logfd" is passed to a parameter that cannot be negative. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This guy touches a random page once per second and backs-up what was touched. At the end it checks whether everything is OK. It can be used to test how snapshots work -- take several snapshots with several seconds pauses in betweem and restore form the last. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This one is a little bit more tricky that dump. On restore we should open the chain of pagemap-s (by "parent" links). Then for every pagemap with in_parent set we should go to parent and ask for the page. Parent, in turn, should properly determine where the respective page is in his pagemap and position the page.img's position respectively. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's quite simple -- get parent's pagemap before dumping memory, then collect _full_ pagemap of task putting holes into page-pipe when the page is (soft-dirty-clear && in-parent-map). At the end reset task's soft-dirty bits. This requires kernel support from http://comments.gmane.org/gmane.linux.kernel.mm/98283Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
1. Directory with images may have a "parent" symlink pointing to the place where the previous snapshot is 2. Each pagemap will have "in_parent" bit, which means, that the pages for this pagemap entry are not in the respective page.img but in parent 3. New --leave-running option to use with --snapshot not to kill tasks after snapshot Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Now we have 2 forms of storing pages -- legacy pages.img and new pagemap + pages image. We'll have one more (ovz) and the pagemap + pages will be stacked (snapshot restore). Thus it's handy to have this as an page-reader object. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The pagemap.img contains sorted iovs. Need to keep this array also sorted even if holes are in there for simpler read on restore. Separate ->write_hole callback since dump of hole and non-hole will differ significantly. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Holes are regions, that don't have pages in them (i.e. -- no pages in pipes). These holes are in separate iovs array since we should have straight arrays of iovs for non-holes, which is in turd required to push it into vmsplice in _one_ chunk. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Apr, 2013 5 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Information about mount points is used for dumping fanotify. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The tcp repair manipulations require CAP_SYS_NET_ADMIN on a calling task. Thus, if the task to restore is run from non-root user, the tcp socket repair off will fail, but restoration wouldn't abort. Fix this by moving creds restore after tcp restore finish. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The fd in -> open callback is temporary (the files restoring engine will re-open one under some other fd). But since we add this fd to future repair off, this off will fail working on wrong fd. Move scheduling for repair-off into port-open where the corrent fd is known. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
The pipe retrieving shared libraries the test depends on ldd $test_path $ps_path | awk '/^\s/{ print $1 }' doesn't actually produce any output so all NS tests fail bacause the system linker fails to locate shared libraries the test program depends on. This patch fixes the pipe to retrieve the list of libraries properly. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-