Commit bee835eb authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm/file_locks01: fix testing devices

Reported-by: Mr Jenkins
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4b0c0c58
......@@ -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")) {
......
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