More descriptive err msg for NVMe format

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-05-09 14:31:30 +02:00
parent 28eee81fea
commit 637ca6e2f4
4 changed files with 11 additions and 4 deletions

View File

@@ -1628,7 +1628,7 @@ static int handle_nvme_format()
}
if (!cas_capabilites.nvme_format) {
cas_printf(LOG_ERR, "Command is not supported\n");
cas_printf(LOG_ERR, "Command is not supported by current kernel\n");
return FAILURE;
}

View File

@@ -183,6 +183,10 @@ struct {
KCAS_ERR_NVME_BAD_FORMAT,
"NVMe is formatted to unsupported format"
},
{
KCAS_ERR_UNSUPPORTED_LBA_FORMAT,
"Specified LBA format is not supported by the NVMe device"
},
{
KCAS_ERR_CONTAINS_PART,
"Device contains partitions.\nIf you want to continue, "