xfstests generic 310: check concurrently of readdir and read on the same directory fd
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Wed, 3 Apr 2013 06:09:10 +0000 (06:09 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 5 Apr 2013 17:25:29 +0000 (12:25 -0500)
commitbbaf78c01bc98b2afc3bb3d31eac38fc5d4b3b19
tree37533884e19e0176bafa76519e11572021234a08
parent797c82f0e22528df369cf198c2a9d6109e085838
xfstests generic 310: check concurrently of readdir and read on the same directory fd

Check if there are two threads,one keeps calling read() or lseek(), and
the other calling readdir(), both on the same directory fd.

Based on a testcase from Li Zefan <lizefan@huawei.com>.
http://marc.info/?l=linux-kernel&m=136123703211869&w=2

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
[rjohnston@sgi.com minor white space fixes and test renumbering]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
src/Makefile
src/t_readdir_1.c [new file with mode: 0644]
src/t_readdir_2.c [new file with mode: 0644]
tests/generic/310 [new file with mode: 0644]
tests/generic/310.out [new file with mode: 0644]
tests/generic/group