generic: shutdown fs after log recovery
authorBrian Foster <bfoster@redhat.com>
Mon, 15 Aug 2016 12:56:26 +0000 (08:56 -0400)
committerEryu Guan <eguan@redhat.com>
Wed, 28 Sep 2016 03:36:32 +0000 (11:36 +0800)
commitd008c3a5f72a3ca75989b00429a17200b0035466
tree6c0b2e4563c9c9ff25371a734fd72727057fb4b3
parent09b981f6ac2b871934587974445f29b51e7e1f5e
generic: shutdown fs after log recovery

XFS had a bug that lead to a possible out-of-order log recovery
situation (e.g., replay a stale modification from the log over more
recent metadata in destination buffer). This resulted in false
corruption reports during log recovery and thus mount failure.

This condition is caused by system crash or filesystem shutdown
shortly after a successful log recovery. Add a test to run a
combined workload, fs shutdown and log recovery loop known to
reproduce the problem on affected kernels.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/388 [new file with mode: 0755]
tests/generic/388.out [new file with mode: 0644]
tests/generic/group