2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-05 08:45:49 +00:00

Use absolute path for image files

Now I try to restore CWD and a relative path will be invalid.

Add new options -D to set image files directory.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Andrey Vagin
2011-12-07 13:48:00 +04:00
committed by Cyrill Gorcunov
parent a5439d5fed
commit d261cf7958
5 changed files with 67 additions and 48 deletions

View File

@@ -174,8 +174,6 @@ DIR *opendir_proc(char *fmt, ...);
FILE *fopen_proc(char *fmt, char *mode, ...);
int open_fmt(char *fmt, int mode, ...);
#define open_fmt_ro(fmt, ...) open_fmt(fmt, O_RDONLY, __VA_ARGS__)
#define __xalloc(op, size, ...) \
({ \
void *___p = op( __VA_ARGS__ ); \