overlay: test concurrent copy up
authorAmir Goldstein <amir73il@gmail.com>
Mon, 16 Jan 2017 12:42:25 +0000 (14:42 +0200)
committerEryu Guan <eguan@redhat.com>
Tue, 17 Jan 2017 03:21:54 +0000 (11:21 +0800)
commit91e16aa7c502654232fadd2d591c638161852403
treed44c52153961a48ed66dc117fa8c9802a21a0b4e
parent8a0831c03ce55452e28d0797c3addbf9b93142fa
overlay: test concurrent copy up

Run 4 process pairs, each competing over copy up of 1K files
in 1 directory. One opponent touches all files in the directory
and the other truncates all files in the directory.

This test does NOT check for concurrent copy up support. It only
fails on unexpected errors of any of the touch/truncate operations.

The test full output should demonstrate the expected results -
for kernel with concurrent copy up support, truncate workers are
not delayed by touch workers. As a result, truncate workers will
finish their work much sooner than a test run without concurrent
copy up support.

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/021 [new file with mode: 0755]
tests/overlay/021.out [new file with mode: 0644]
tests/overlay/group