Commit 47ba8087 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

restorer: Shrink ns_last_pid_path size

No need for the big PATH_MAX here.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 63137fbe
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "image.h" #include "image.h"
#include "lock.h" #include "lock.h"
#include "util.h" #include "util.h"
#include "crtools.h"
#ifndef CONFIG_X86_64 #ifndef CONFIG_X86_64
# error Only x86-64 is supported # error Only x86-64 is supported
...@@ -65,7 +66,7 @@ struct task_restore_core_args { ...@@ -65,7 +66,7 @@ struct task_restore_core_args {
int pid; /* task pid */ int pid; /* task pid */
int fd_core; /* opened core file */ int fd_core; /* opened core file */
int fd_self_vmas; /* opened file with running VMAs to unmap */ int fd_self_vmas; /* opened file with running VMAs to unmap */
char ns_last_pid_path[PATH_MAX]; char ns_last_pid_path[sizeof(LAST_PID_PATH) + 1];
bool restore_threads; /* if to restore threads */ bool restore_threads; /* if to restore threads */
u32 rst_lock; u32 rst_lock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment