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

locks: Fix restore from v1.2 images

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2014-08-20 17:38:36 +04:00
parent c049d8452d
commit 1514284d84
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ static int restore_file_locks_legacy(int pid)
int fd, ret = -1;
FileLockEntry *fle;
fd = open_image(CR_FD_FILE_LOCKS, O_RSTR | O_OPT, pid);
fd = open_image(CR_FD_FILE_LOCKS_PID, O_RSTR | O_OPT, pid);
if (fd < 0) {
if (fd == -ENOENT)
return 0;

View File

@ -91,7 +91,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
},
[CR_FD_FILE_LOCKS_PID] = {
.fmt = "filelocks-%d",
.fmt = "filelocks-%d.img",
.magic = FILE_LOCKS_MAGIC,
},
};