Skip to content
Commit 4bf96b66 authored by Qiang Huang's avatar Qiang Huang Committed by Pavel Emelyanov
Browse files

crtools: restore flock&posix file locks



According to the file lock information from the image, we recall
flock or fcntl with proper parameters, so we can rehold the file
locks as we were dumped.
We only support flock and posix file locks so far.

Changelog since the initial version:
a. Use prepare_file_locks instead of restore function directly.
b. Fix some bugs.

Originally-signed-off-by: default avatarZheng Gu <cengku.gu@huawei.com>
Signed-off-by: default avatarQiang Huang <h.huangqiang@huawei.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 95801808
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment