pyocf: Rename Volume to RamVolume

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2021-10-19 14:46:06 +02:00
parent 062f63e4ff
commit 16f9d58f28
22 changed files with 198 additions and 196 deletions

View File

@@ -1,5 +1,5 @@
#
# Copyright(c) 2021 Intel Corporation
# Copyright(c) 2022 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -13,7 +13,7 @@ from threading import Thread, Condition, Event
from copy import deepcopy
from pyocf.utils import Size
from pyocf.types.volume import Volume
from pyocf.types.volume import RamVolume
from pyocf.types.io import Io, IoDir
from pyocf.types.data import Data
@@ -67,7 +67,7 @@ class JobSpec:
qd: int = 1
size: Size = Size(0)
io_size: Size = Size(0)
target: Volume = None
target: RamVolume = None
time_based: bool = False
time: timedelta = None
continue_on_error: bool = False
@@ -211,7 +211,7 @@ class Rio:
self.global_jobspec.qd = qd
return self
def target(self, target: Volume):
def target(self, target: RamVolume):
self.global_jobspec.target = target
return self