pyocf: helper to get composite volume type id
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
03dbbd4471
commit
6b9719907a
13
tests/functional/pyocf/c/helpers/volume_type.c
Normal file
13
tests/functional/pyocf/c/helpers/volume_type.c
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright(c) 2022-2022 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include "ocf/ocf_composite_volume.h"
|
||||
|
||||
int ocf_get_composite_volume_type_id_helper()
|
||||
{
|
||||
return OCF_VOLUME_TYPE_COMPOSITE;
|
||||
}
|
||||
|
||||
|
@ -34,3 +34,8 @@ def get_metadata_segment_elem_size(cache, segment):
|
||||
def get_metadata_segment_is_flapped(cache, segment):
|
||||
lib = OcfLib.getInstance()
|
||||
return bool(lib.ocf_get_metadata_segment_is_flapped(cache, segment))
|
||||
|
||||
|
||||
def get_composite_volume_type_id():
|
||||
lib = OcfLib.getInstance()
|
||||
return int(lib.ocf_get_composite_volume_type_id_helper())
|
||||
|
Loading…
Reference in New Issue
Block a user