overlay: test concurrent copy up of lower hardlinks
authorAmir Goldstein <amir73il@gmail.com>
Wed, 5 Jul 2017 12:02:04 +0000 (15:02 +0300)
committerEryu Guan <eguan@redhat.com>
Thu, 6 Jul 2017 05:39:03 +0000 (13:39 +0800)
commit7b4d655bb815a9ec5f54a5b8102c7d4a4df9c75e
treea404effa79db73067611633a37cf8b6dda1d3806
parent004a78036ece314feb139d1fe552a043d566e15b
overlay: test concurrent copy up of lower hardlinks

Two tasks make a modification concurrently on two hardlinks of a
large lower inode.  The copy up should be triggered by one of the
tasks and the other should be waiting for copy up to complete.  Both
copy up targets should end up being upper hardlinks and both
metadata changes should be visible in both hardlinks.

With kernel <= v4.12, hardlinks are broken on copy up, meaning that
copy up is performed independetly and the resulting upper copy up
targets each have only one of the the metadata changes visible.

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