They were missed by the initial set of patches which introduced this header as a mandatory one across different types of files. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I3f9b37d41298c843e1648e72fe8593768ccd37e0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15423 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2017 Intel Corporation.
|
|
# All rights reserved.
|
|
|
|
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)
|
|
|
|
|
|
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)
|
|
|
|
|
|
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)
|