]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlayfs: test fsync on merged directory
authorFilipe Manana <fdmanana@suse.com>
Wed, 23 Mar 2016 06:39:11 +0000 (17:39 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Mar 2016 06:39:11 +0000 (17:39 +1100)
commit32253c7b406b33c95b710302c77dbdb28ec894ba
tree8f72ca5a4e14cddaf81ffb4a870cb5e35bccd8ff
parent1ffa40385a741dff38cde3e01c9eaa1e938f72ce
overlayfs: test fsync on merged directory

Test that calling fsync against a file using the merged directory does
not result in a crash nor fails unexpectedly.

This is motivated by a change in overlayfs that resulted in a crash
(invalid memory access) when the lower or upper directory belonged to
a btrfs file system. The overlayfs change came in commit 4bacc9c9234
(overlayfs: Make f_path always point to the overlay and f_inode to the
underlay). At the moment there are two patches in the linux-fsdevel
and linux-btrfs mailing lists to fix this problem:

  * vfs: add file_dentry()
  * Btrfs: fix crash/invalid memory access on fsync when using overlayfs

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/overlay/002 [new file with mode: 0755]
tests/overlay/002.out [new file with mode: 0644]
tests/overlay/group