mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
zdtm/file_locks01: fix testing devices
Reported-by: Mr Jenkins Signed-off-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
4b0c0c5828
commit
bee835ebeb
1 changed files with 4 additions and 1 deletions
|
|
@ -105,7 +105,10 @@ static int check_file_locks()
|
|||
break;
|
||||
}
|
||||
|
||||
if (i_no != inodes[0] && i_no != inodes[1] && i_no != inodes[2] && makedev(maj, min) != dev)
|
||||
if (i_no != inodes[0] && i_no != inodes[1] && i_no != inodes[2])
|
||||
continue;
|
||||
|
||||
if (makedev(maj, min) != dev)
|
||||
continue;
|
||||
|
||||
if (!strcmp(fl_flag, "FLOCK") && !strcmp(fl_type, "ADVISORY")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue