2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00
Andrew Vagin 5bf25d36c0 files: declare fd_params->pos as off_t
Currently pos has type unsigned long, so its size depends on
architecture. pos is saved as 64-bit value in the image file and it
isn't restored, if it is equal to -1. Due to convertation on 32-bit
platforms -1 is converted into UINT_MAX and we get error on restore.

$ zdtm.sh ns/static/tun
...
(00.398513)      5: Error (files-reg.c:534): Can't restore file pos: Illegal seek
(00.398888)      5: Error (files-reg.c:489): Can't open file /dev/net/tun: Illegal seek
...
id: 0x15 flags: 0x2 pos: 0x000000ffffffff fown: { uid: 0 euid: 0 signum: 0 pid_type: 0 pid: 0 }  name: "/dev/net/tun"

crtools is compiled with _FILE_OFFSET_BITS=64, so off_t is always 64-bit.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-08-29 14:55:37 +04:00
2013-08-29 14:48:17 +04:00
2012-03-25 23:31:20 +04:00
2013-04-01 12:29:06 +04:00
2013-08-23 19:18:47 +04:00
2013-08-24 17:50:35 +04:00
2012-07-30 13:52:37 +04:00
2013-04-30 20:17:55 +04:00
2013-04-15 12:46:25 +04:00
2013-08-29 14:55:37 +04:00
2013-08-09 15:37:35 +04:00
2013-08-28 19:06:43 +04:00
2013-08-28 19:06:43 +04:00
2013-05-03 01:56:30 +04:00
2013-04-30 18:31:34 +04:00
2013-07-08 13:40:23 +04:00
2013-07-10 17:31:09 +04:00
2013-05-10 11:02:02 +04:00
2013-08-28 19:06:43 +04:00
2013-04-05 08:23:17 +04:00
2013-08-11 20:02:33 +04:00

criu
====

An utility to checkpoint/restore tasks.

Some code snippets are borrowed from

 - Linux kernel (http://kernel.org/)
 - git (http://git-scm.com/)
 - kvm-tools (https://github.com/penberg/linux-kvm)
 - ptrace-parasite (https://code.google.com/p/ptrace-parasite/)

Many thanks to these projects.

Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)
Description
No description provided
Readme 81 MiB
Languages
C 86%
Python 6.1%
Java 2.6%
Shell 2.6%
Makefile 2%
Other 0.7%