mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/504: Check inode number accurately
If inode number is equal to the line number of locks which is first column in /proc/locks, generic/504 will match wrong number and get PASS. For example: ----------------------------------------------------------- inode 12 ... 12: FLOCK ADVISORY WRITE 1615 00:2e:37889 0 EOF ----------------------------------------------------------- We should match correct inode number by six column in /proc/locks. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ flock -x 9
|
||||
cat /proc/locks >> $seqres.full
|
||||
|
||||
# Checking
|
||||
grep -qw $tf_inode /proc/locks || echo "lock info not found"
|
||||
grep -q ":$tf_inode " /proc/locks || echo "lock info not found"
|
||||
|
||||
# success, all done
|
||||
status=0
|
||||
|
||||
Reference in New Issue
Block a user