ext4: allow ext4 to use $SCRATCH_LOGDEV
authorJeff Layton <jlayton@redhat.com>
Fri, 16 Jun 2017 19:36:15 +0000 (15:36 -0400)
committerEryu Guan <eguan@redhat.com>
Tue, 20 Jun 2017 12:29:42 +0000 (20:29 +0800)
commit86e3983476852365e1dc822c488ec5649f26e5c8
tree1692dcb78a8f89876a0d5d13efb943532b6fe7fe
parent6813e5213df80b90db215923129c7deac9b41a5b
ext4: allow ext4 to use $SCRATCH_LOGDEV

The writeback error handling test requires that you put the journal on a
separate device. This allows us to use dmerror to simulate data
writeback failure, without affecting the journal.

xfs already has infrastructure for this (a'la $SCRATCH_LOGDEV), so wire
up the ext4 code so that it can do the same thing when _scratch_mkfs is
called.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc