]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Fix faulty slog_replay_fs_001 test
authorRyan Moeller <ryan@iXsystems.com>
Thu, 20 Feb 2020 16:11:51 +0000 (11:11 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 16:11:51 +0000 (08:11 -0800)
commit325a551232cb714cebf167d327d512a64256bcd0
tree5ae0ea3a3bbaeb30849ae159282304f81cb78076
parent65635c34034933f5adaf3a6e470a06e12a9435ae
ZTS: Fix faulty slog_replay_fs_001 test

This test is supposed to verify zil operations. For TX_WRITE, writes
must be synchronous in order to be entered in the zil. Linux seems to
be doing sync writes even when they are not asked for, but on FreeBSD
the test does not do what is intended.

Use dd oflag=sync for the parts of this test that are supposed to
result in TX_WRITE zil entries.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10022
tests/zfs-tests/tests/functional/slog/slog_replay_fs_001.ksh