6c425dea8e
Change-Id: I3c179e4e87f0039af29938b553957989a2d9c16b Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466887 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from .helpers import deprecated_alias
|
|
|
|
|
|
@deprecated_alias('create_pmem_pool')
|
|
def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size):
|
|
"""Create pmem pool at specified path.
|
|
Args:
|
|
pmem_file: path at which to create pmem pool
|
|
num_blocks: number of blocks for created pmem pool file
|
|
block_size: block size for pmem pool file
|
|
"""
|
|
params = {'pmem_file': pmem_file,
|
|
'num_blocks': num_blocks,
|
|
'block_size': block_size}
|
|
return client.call('bdev_pmem_create_pool', params)
|
|
|
|
|
|
@deprecated_alias('pmem_pool_info')
|
|
def bdev_pmem_get_pool_info(client, pmem_file):
|
|
"""Get details about pmem pool.
|
|
Args:
|
|
pmem_file: path to pmem pool
|
|
"""
|
|
params = {'pmem_file': pmem_file}
|
|
return client.call('bdev_pmem_get_pool_info', params)
|
|
|
|
|
|
@deprecated_alias('delete_pmem_pool')
|
|
def bdev_pmem_delete_pool(client, pmem_file):
|
|
"""Delete pmem pool.
|
|
Args:
|
|
pmem_file: path to pmem pool
|
|
"""
|
|
params = {'pmem_file': pmem_file}
|
|
return client.call('bdev_pmem_delete_pool', params)
|