Commit 1514284d authored by Pavel Emelyanov's avatar Pavel Emelyanov

locks: Fix restore from v1.2 images

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c049d845
......@@ -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,
},
};
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