]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test that mmap-write updates c/mtime
authorOmer Zilberberg <omzg@plexistor.com>
Wed, 1 Apr 2015 04:39:36 +0000 (15:39 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 1 Apr 2015 04:39:36 +0000 (15:39 +1100)
commit856ff268845570b9b5a7d2499452af2da0866f83
tree5673afa83b36ea97bba163575598e528fb8dfac5
parent9edaf22811c2cee3ebeb87cfc1bc28018c7f067b
generic: test that mmap-write updates c/mtime

When using mmap() for file i/o, writing to the file should update
it's c/mtime. Specifically if we first mmap-read from a page, then
memap-write to the same page.

This test was failing for the initial submission of DAX because
pfn based mapping do not have an page_mkwrite called for them.
The new Kernel patches that introduce pfn_mkwrite fixes this test.

Test adapted from a script originally written by Dave Chinner.

Signed-off-by: Omer Zilberberg <omzg@plexistor.com>
Signed-off-by: Boaz Harrosh <boaz@plexistor.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/080 [new file with mode: 0755]
tests/generic/080.out [new file with mode: 0644]
tests/generic/group