mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
Only two fields are modifiable -- hostname and domainname. So read them on dump and write on restore. File format is simple -- u32 magic u32 length of nodename u8[] nodename string u32 length of domainname u8[] domainname string For OpenVZ we can write the release at the end, but this is later. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
7 lines
195 B
C
7 lines
195 B
C
#ifndef __CR_NS_H__
|
|
#define __CR_NS_H__
|
|
int dump_namespaces(int pid);
|
|
int prepare_namespace(int pid, unsigned long clone_flags);
|
|
int try_show_namespaces(int pid);
|
|
void show_utsns(int fd);
|
|
#endif
|