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:
parent
c049d8452d
commit
1514284d84
@ -265,7 +265,7 @@ static int restore_file_locks_legacy(int pid)
|
|||||||
int fd, ret = -1;
|
int fd, ret = -1;
|
||||||
FileLockEntry *fle;
|
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 < 0) {
|
||||||
if (fd == -ENOENT)
|
if (fd == -ENOENT)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -91,7 +91,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[CR_FD_FILE_LOCKS_PID] = {
|
[CR_FD_FILE_LOCKS_PID] = {
|
||||||
.fmt = "filelocks-%d",
|
.fmt = "filelocks-%d.img",
|
||||||
.magic = FILE_LOCKS_MAGIC,
|
.magic = FILE_LOCKS_MAGIC,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user