mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
locks: Fix restore from v1.2 images
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
c049d8452d
commit
1514284d84
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue