generic: test correct d_type values
authorAmir Goldstein <amir73il@gmail.com>
Wed, 21 Dec 2016 13:50:21 +0000 (15:50 +0200)
committerEryu Guan <eguan@redhat.com>
Sat, 24 Dec 2016 12:21:55 +0000 (20:21 +0800)
commit7ee1d97c799bb4e83eba98b931a6d30ba43603eb
treeaf444ae806b1edbb61c2fcb0f295fbba0d31a006
parentd0d42a38211cfaea9db5a8b6a8ea4e1f5e2d2fa2
generic: test correct d_type values

Verify correct d_type values of dir entries.

This test does NOT require that file system support the filetype
feature.  It verifies that either all file types are reported as
DT_UNKNOWN or that all file types are reported correctly.

For fs for which we know how to test the filetype feature (xfs|ext*)
verify getting DT_UNKNOWN IFF filetype feature is disabled.

Special dir entries . and .. MAY be reported as DT_UNKNOWN IF
filetype feature is disabled (ext4), but MAY also be reported as
DT_DIR in this case (xfs).

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/401 [new file with mode: 0755]
tests/generic/401.out [new file with mode: 0644]
tests/generic/group