]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: Add fio atomic write helpers
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Fri, 19 Sep 2025 06:47:55 +0000 (12:17 +0530)
committerZorro Lang <zlang@kernel.org>
Fri, 17 Oct 2025 20:31:08 +0000 (04:31 +0800)
commita346de1bb28b5022a514a86cd90f04f75f9c2abe
tree82fd33afd65738f106b87d20b03021613b313119
parentc6cffd0ae6d4d3e9b94d70a5345515d5211c9def
common/rc: Add fio atomic write helpers

The main motivation of adding this function on top of _require_fio is
that there has been a case in fio where atomic= option was added but
later it was changed to noop since kernel didn't yet have support for
atomic writes. It was then again utilized to do atomic writes in a later
version, once kernel got the support. Due to this there is a point in
fio where _require_fio w/ atomic=1 will succeed even though it would
not be doing atomic writes.

Hence, add an internal helper __require_fio_version to require specific
versions of fio to work past such issues. Further, add the high level
_require_fio_atomic_writes helper which tests can use to ensure fio
has the right version for atomic writes.

Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc