src/t_truncate_cmtime: test truncate up too
authorEryu Guan <eguan@redhat.com>
Mon, 21 Sep 2015 03:06:18 +0000 (13:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 03:06:18 +0000 (13:06 +1000)
commit80b486101b43732a97a201f5dad888840f8c60ba
treeec81f51d29fb10f1ac1868fa6f67ca727b02e257
parent7dc0112d7206468265094428aff250330437d2fc
src/t_truncate_cmtime: test truncate up too

Currently src/t_truncate_cmtime only tests the truncate down case,
truncate up case should be tested too. A recent ext4 bug shows that we
missed that coverage.

See kernel commit 911af577de4e ("ext4: update c/mtime on truncate up")

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/t_truncate_cmtime.c