overlay/017: use t_dir_type to find file by d_ino
authorAmir Goldstein <amir73il@gmail.com>
Thu, 11 May 2017 06:55:08 +0000 (09:55 +0300)
committerEryu Guan <eguan@redhat.com>
Fri, 12 May 2017 13:13:19 +0000 (21:13 +0800)
commita19298e3631790a12fc788b290a7791a2039cb06
treee704df6d604d6799d85b6ec7518260b2718178b1
parent0b73181005943def53507cf6e88a50dbca94caa6
overlay/017: use t_dir_type to find file by d_ino

'find -ino' is this test was supposed to filter files by inode
number that was recorded with 'ls -i' to compare st_ino returned by
stat(2) with d_ino returned by getdents64(2).

It turns out that on some systems, 'find -ino' uses stat(2) for
filtering by inode number, which is not what we want.

Use the auxiliary program t_dir_type to filter files by inode number
instead.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/overlay/017