Skip to content

Commit

Permalink
Remove None IO engine
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Sep 19, 2024
1 parent 09959a5 commit b29f0b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lisa/tools/fio.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class IoEngine(Enum):
IO_URING = "io_uring"
LIBAIO = "libaio"
POSIXAIO = "posixaio"
NONE = ""

def __str__(self) -> str:
return self.value
Expand Down Expand Up @@ -103,7 +102,7 @@ def launch(
verify_dump: bool = False,
verify_fatal: bool = False,
verify: str = "",
ioengine: IoEngine = IoEngine.NONE,
ioengine: IoEngine = IoEngine.LIBAIO,
cwd: Optional[pathlib.PurePath] = None,
) -> FIOResult:
cmd = self._get_command(
Expand Down Expand Up @@ -161,7 +160,7 @@ def launch_async(
verify_dump: bool = False,
verify_fatal: bool = False,
verify: str = "",
ioengine: IoEngine = IoEngine.NONE,
ioengine: IoEngine = IoEngine.LIBAIO,
cwd: Optional[pathlib.PurePath] = None,
) -> Process:
cmd = self._get_command(
Expand Down Expand Up @@ -282,8 +281,6 @@ def _get_command( # noqa: C901
) -> str:
if isinstance(self.node.os, BSD):
ioengine = IoEngine.POSIXAIO
elif ioengine == IoEngine.NONE:
ioengine = IoEngine.LIBAIO

cmd = (
f"--ioengine={ioengine.value} --filename={filename} "
Expand Down
2 changes: 1 addition & 1 deletion microsoft/testsuites/performance/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def perf_disk(
size_mb: int = 0,
numjob: int = 0,
overwrite: bool = False,
ioengine: IoEngine = IoEngine.NONE,
ioengine: IoEngine = IoEngine.LIBAIO,
cwd: Optional[pathlib.PurePath] = None,
) -> None:
fio_result_list: List[FIOResult] = []
Expand Down

0 comments on commit b29f0b2

Please sign in to comment.