- 29 Oct, 2012 2 commits
-
-
Cyrill Gorcunov authored
This is rather a code tossing for the next patch. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Since we support tty migration, use it here, otherwise it'll fail. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 26 Oct, 2012 3 commits
-
-
Vladimir Davydov authored
For vz containers, monotonic time freezes when a container is checkpointed. This makes the zdtm posix timer test fail. To fix this, obtain time passed, which is used to check timer results, using the clock used by the timer. Signed-off-by:
Vladimir Davydov <vdavydov@parallels.com> Acked-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
After sleep 0.9 there occurs sleep 0.10 which is not what we want. Stop incrementing on 0.9 Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Reported-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 25 Oct, 2012 6 commits
-
-
Cyrill Gorcunov authored
To test new bits we fetch from VmFlags smaps interface. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
If we're provided with madivce() bits -- do restore hits on VMA areas. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
The kernel now supports providing VMA flags via smaps interface so add pasting of them. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it for VMA restore. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
On my testing machine these defs are not present so define them where needed. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Huang Qiang authored
According to Andrew's advice, change the close file logic a bit, to make the code seems more readable. Signed-off-by:
Huang Qiang <h.huangqiang@huawei.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 24 Oct, 2012 10 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The fd we want to work on is the 2nd argument, no need in calculating it out of file_desc. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Kinsbursky Stas added a comment - 24/Oct/12 4:24 PM st_dev won't be the same. It's generated on each NFS superblock creation. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This requires more work than for unix sockets. For now report that we cannot do it. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Get the info from kernel diag message (it should always be there) and restore the shutdown at the very end. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Huang Qiang authored
Many image files opened by open_image_ro weren't closed before return, fix them all in this patch. Signed-off-by:
Huang Qiang <h.huangqiang@huawei.com> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
sched_prio00 tests only priorities and sched_policy00 tests scheduling policy. scheduling policy can not be changed in OpenVZ containers. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
getsid is required _XOPEN_SOURCE_EXTENDED, it's enabled if __GNU_SOURCE is defined. session00.c:92: error: implicit declaration of function 'getsid' Signed-off-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's a rudiment which not parsed well by all gcc versions. Reported-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 22 Oct, 2012 1 commit
-
-
Cyrill Gorcunov authored
In case of errors it provides us more information about what is going on. For example, in my test case I now can see where the error came from | (00.027248) tty: Unpaired slave 0 | (00.027261) tty: Unpaired slave 2 | (00.027273) Error (tty.c:174): tty: Only one slave external peer is allowed (index 2) Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 19 Oct, 2012 4 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The kernel SO_BINDTODEVICE option is not symmetrical -- set required device name, but get reports index. Thus need the index to name resolver. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It will be required to support socket bound to devices. When restoring w/o net namespaces -- collect existing devices. When restoring with them -- collect what is received from image. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We'll need to dump links for another purpose, so prepare the generic rtnl talker for that. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 18 Oct, 2012 9 commits
-
-
Cyrill Gorcunov authored
- Drop -c option from "dump" context, it is no longer valid - Add --link-remap, --shell-job options Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if we've dumped a slave peer only (say a user dumped `top' application) we should migrate it on current active terminal, which barely an own standart stream prepared for us by the file engine. Note only one external slave peer is allowed simply because otherwise we can't distinguish which indices should be used for each of them. The patch basically does the following things - Check if the SID present on peer exist in current process tree, we need to be sure that we can restore peer parameters and controlling terminal if present - Rename pty_open_fake_ptmx to pty_open_unpaired_slave because we might be inheriting SELF_STDIN_OFF instead of opening fake master peer - Do inherit SELF_STDIN_OFF and restore tty group if we are restoring external tty Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We need to make sure that the only one external tty is present, since otherwise we have no idea on which pts index to connect them on restore. This patch extends tty_verify_active_pairs procedure to count how many external tty is present in the dump image. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Upon reception of tty we need to mark it in @tty_active_pairs bitmam thus we will be able to verify if - all active ttys obtained are paired - if not paired then only one external tty is allowed Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
If --shell-job passed we allow to dump and restpre session non-leaders. Note that in sake of tty restore (which will be addressed in further patches) we do inherit process group for root task. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This option will tells the tool to procceed dumping even if a root task is not a session leader. This implies that this option will allow to "migrate" one external tty connection. Say a person may dump "top" application in one bash shell and restore it in another shell session. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We will need it for slave ttys migration. They serve for one purpose -- to clone self stdio descriptor and use it with tty layer, which will be addressed in further patches. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise PRIO_PROCESS may be not found. Reported-by:
Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Grigorev authored
It should fit the sa_sigaction declaration, otherwise compiler complains about uncasted assignments. | restorer.c: In function тАШ__export_restore_taskтАЩ: | restorer.c:318:20: error: assignment from incompatible pointer type [-Werror] So just use siginfo_t here from the system signal.h header. Signed-off-by:
Andrew Grigorev <andrew@ei-grad.ru> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 16 Oct, 2012 1 commit
-
-
Pavel Emelyanov authored
No magic here, just fetch info using getpriority and sched_getxxx calls. Good news is that the mentioned syscalls take pid as argument and do work with it, i.e. -- no need in parasite help here. Restore is splitted into prep -- copy sched bits from image on restorer args -- and the restore itself. It's done to avoid restoring tasks info with IDLE priority ;) To make restorer not-fail sched bits are validated for sanity on prep stage. Minimal sanity test is also there. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Oct, 2012 4 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We need to use namespace local sid/pgid parameters assigned on tty link, thus use parasite helper. Otherwise we might fail on restoring controlling terminal inside namespace (though everything else will work even without this patch). Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it in tty layer. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Since we've started fetching sid/pgid from the dumpee context we're allowed to obtain sid/pgid on a slave peer. This is perfectly valid. So drop this test. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-