Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libnvme/src/nvme/nvme-types-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1652,8 +1652,8 @@ struct nvme_id_psd {
* all namespaces with any supported namespace format for a Compare
* and Write fused operation. This field is specified in logical
* blocks and is a 0’s based value.
* @cdfs: Optional Copy Formats Supported, each bit n means controller
* supports Copy Format n.
* @cdfs: Copy Descriptor Formats Supported, each bit n means
* controller supports Copy Descriptor Format n.
* @sgls: SGL Support, see &enum nvme_id_ctrl_sgls
* @mnan: Maximum Number of Allowed Namespaces indicates the maximum
* number of namespaces supported by the NVM subsystem.
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/nvme_copy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TestNVMeCopy(TestNVMe):
Provides shared setUp/tearDown and helper methods used by all copy test
subclasses.
- Attributes:
- ocfs : optional copy formats supported (from id ctrl)
- cdfs : copy descriptor formats supported (from id ctrl)
- original_cdfe : saved cdfe value restored in tearDown, or None
- mcl : Maximum Copy Length (blocks)
- mssrl : Maximum Single Source Range Length (blocks)
Expand All @@ -44,7 +44,7 @@ class TestNVMeCopy(TestNVMe):
def setUp(self):
""" Pre Section for TestNVMeCopy """
super().setUp()
self.ocfs = self.get_ocfs()
self.cdfs = self.get_cdfs()
self.original_cdfe = None
self._refresh_ns_copy_limits()
get_ns_id_cmd = f"{self.nvme_bin} ns get-id {self.ns1}"
Expand Down Expand Up @@ -73,7 +73,7 @@ def _refresh_ns_copy_limits(self):

def _check_format_supported(self, desc_format):
""" Skip test if the given copy descriptor format is not supported """
if not self.ocfs & (1 << desc_format):
if not self.cdfs & (1 << desc_format):
self.skipTest(f"descriptor format {desc_format} is not supported")

def _check_ns_copy_limits(self):
Expand Down
8 changes: 4 additions & 4 deletions tests/nvme_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,14 +667,14 @@ def get_id_ns_field_value(self, field):
f"ERROR : reading field '{field}' failed")
return str(json_output[field])

def get_ocfs(self):
""" Wrapper for extracting optional copy formats supported
def get_cdfs(self):
""" Wrapper for extracting copy descriptor formats supported
- Args:
- None
- Returns:
- Optional Copy Formats Supported
- Copy Descriptor Formats Supported
"""
return to_decimal(self.get_id_ctrl_field_value("ocfs"))
return to_decimal(self.get_id_ctrl_field_value("cdfs"))

def delete_all_ns(self):
""" Wrapper for deleting all the namespaces.
Expand Down